Skip to main content

Detect whether the terminal supports advanced Unicode.

Project description

> is-unicode-supported

Detect whether the terminal supports advanced Unicode.

Checks if terminal supports advanced Unicode (CJK, emoji, etc.) by measuring the cursor position of a single, wide char (𠀀). On Windows, returns False for legacy consoles (CMD). On all other modern terminals, returns True if the wide char renders as 2 columns.

⚡ Installation

pip install is-unicode-supported

💻 Command line usage

$ is-unicode-supported  # or isunicodesupported

True

CLI options:

Option Description
-h, --help Show help screen
-v, --version Show version
--docs Open docs URL

🔌 API usage

import is_unicode_supported

if is_unicode_supported():
    print('Advanced Unicode supported!')
else:
    print('Advanced Unicode not supported!')

Note: Most type checkers will falsely warn is_unicode_supported is not a callable module because they are incapable of analyzing runtime behavior (where the module is replaced w/ a function for cleaner, direct access). You can safely suppress such warnings using # type: ignore.

MIT License

Copyright © 2026 Adam Lui.

Back to top ↑

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

is_unicode_supported-1.0.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

is_unicode_supported-1.0.0-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file is_unicode_supported-1.0.0.tar.gz.

File metadata

  • Download URL: is_unicode_supported-1.0.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for is_unicode_supported-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1777cd9001f10afdfee1fd26634b2574f7e7b034e196b34d5b9370a7b69cbc0c
MD5 a65e004d023228c7010426f354bca2c2
BLAKE2b-256 d5ace1c7c11b02e88dfa4255accea31cd2213b0639bfaa1ddddc296b2795dee7

See more details on using hashes here.

File details

Details for the file is_unicode_supported-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for is_unicode_supported-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 189d7394b96af98d0dbcf3390e33fc5903a8bedbc8352357d69b986c80dd6d6c
MD5 879eba77601c40478520c892731caf2f
BLAKE2b-256 716a29fb7441eb14b33b9e30cc6dc8068d7e4497808ee7c0bcf01c2998ff9eb1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page