The `ansicon` Python library provides a wrapper to load Jason Hood's ANSICON utility, enabling ANSI escape sequences for colored text in the Windows command prompt. It is currently at version 1.89.0, with releases typically mirroring new versions of the underlying ANSICON C utility.
pip install ansiconVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to load ANSICON and print colored text using ANSI escape sequences. It includes a check for successful loading, which is crucial for this library.
Download `ANSICON.exe` from its official source (e.g., adoxa.xyz/ansicon), extract it, and place `ANSICON.exe` in a directory listed in your system's PATH environment variable or in your script's execution directory.
On non-Windows systems, ANSI escape sequences usually work natively in modern terminals without `ansicon`. If you need cross-platform colored output, consider libraries like `colorama` or `rich`.
Always check the return value of `ansicon.load()` and provide appropriate fallback or error messages if it returns `False`, as shown in the quickstart example.
No dependency data recorded yet.