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

Colors in Windows #137

Closed
darikg opened this issue Jul 17, 2015 · 4 comments
Closed

Colors in Windows #137

darikg opened this issue Jul 17, 2015 · 4 comments

Comments

@darikg
Copy link
Contributor

darikg commented Jul 17, 2015

It looks like win32_output.py maps all colors to the closest color in a 16-color table. ConEmu supports ANSI color codes. Is it possible to detect which console is being used and only fall back to 16-bit color if necessary?

@jonathanslenders
Copy link
Member

That should be possible. ConEmu sets the ConEmuANSI environment variable when it has ANSI colors enabled. I guess it should be easy to switch to 256 colors in that case. I'll have a look. Thanks for the suggestion!

See: https://code.google.com/p/conemu-maximus5/wiki/ConEmuEnvironment

@jonathanslenders
Copy link
Member

It should work now: 17b8a3a

However, for some reason ConEmu only supports 256 colors in the "bottom region". So you have to print print('\x1b[9999;1H') to make it scroll to the bottom first. (I don't like it entirely, but the colors look good.)

@jonathanslenders
Copy link
Member

See: Maximus5/ConEmu#227

@jonathanslenders
Copy link
Member

The latest release always uses ANSI escape codes when ConEmu has been detected. However, unfortunately 256 colors only works in the bottom region.
I close this, because there is nothing more on our side that we can do.

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

No branches or pull requests

2 participants