Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Use proper terminal description rather than sys.platform to determine ANSI code support #144

Open
aomader opened this issue Jun 21, 2015 · 0 comments

Comments

@aomader
Copy link

aomader commented Jun 21, 2015

Currently, the win32 wrapper for stdout and stderr is installed when the python interpreter runs on a Windows machine. But, this check isn't appropriate to determine whether the terminal supports the ANSI codes. This leads to the effect, that if you use Python inside a proper ANSI terminal on windows, e.g., an MSYS environment, the output is incorrect, because all ANSI codes are stripped.

The above mentioned check should instead determine, if the current terminal supports ANSI codes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant