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

expand terminal color support #3618

Merged
merged 5 commits into from Jul 13, 2013
Merged

expand terminal color support #3618

merged 5 commits into from Jul 13, 2013

Conversation

minrk
Copy link
Member

@minrk minrk commented Jul 12, 2013

adds support for VT100 256 colors, and 24 bit RGB

The only terminal color feature that I am aware of that we still don't support is the ANSI bright / non-bright distinction.

It should also improve the handling of unrecognized color escapes (stripping, rather than leaving untouched).

Definitely needs testing, as the 256-color support is a bit complicated (ping @ivanov).

There is one related benefit that I was able to get this into a single replace call with regular expressions,
rather than a sequence of replacements, so it might be faster than before.

closes #3617

adds support for 256 colors

does not yet add support for themed 16-color mapping ([01;38;5;[0-15])

closes ipython#3617
@ivanov
Copy link
Member

ivanov commented Jul 12, 2013

fixed! even worked right away for previously saved notebooks. plain-old simple colors also still work. Thanks Min!

@ivanov
Copy link
Member

ivanov commented Jul 12, 2013

should i merge, or were you planning to tackle the themed 16-color mapping in this PR?

@minrk
Copy link
Member Author

minrk commented Jul 12, 2013

16-color mapping should work now, I'd say this is ready to merge.

@ivanov
Copy link
Member

ivanov commented Jul 13, 2013

sweet, great job Min, the example notebook looks nifty. Merging

ivanov added a commit that referenced this pull request Jul 13, 2013
expand terminal color support (16 and 256 ANSI colors)
@ivanov ivanov merged commit 90058f9 into ipython:master Jul 13, 2013
@jakobgager jakobgager mentioned this pull request Jul 13, 2013
7 tasks
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
expand terminal color support (16 and 256 ANSI colors)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

256 color escapes support
2 participants