Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Colors in Windows #17

Open
jsbueno opened this issue Jul 28, 2020 · 0 comments
Open

Fix Colors in Windows #17

jsbueno opened this issue Jul 28, 2020 · 0 comments
Labels

Comments

@jsbueno
Copy link
Owner

jsbueno commented Jul 28, 2020

Current terminal backend uses the "39 SGR" Ansi sequence for 24bit color on the terminal. However, colorama wll simply strip these sequences off, resulting in no color capabilities in windows - even though windows terminal suppots 24bit color, and "cmder" supports the color sequences (and rounds the colors down to the 16 more used values).

Find a way to detect the terminal app under windows, and only trigger "colorama" if on "cmd" - the other apps work with plainANSI sequences.
Round colors down to the 16 "well known codes" if on cmd or cmder.

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

No branches or pull requests

1 participant