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

Support for 256-color escape sequences in Qt console #283

Merged
1 commit merged into from Mar 12, 2011
Merged

Support for 256-color escape sequences in Qt console #283

1 commit merged into from Mar 12, 2011

Conversation

epatters
Copy link
Contributor

@epatters epatters commented Mar 1, 2011

On a whim, I added support for the 256 color xterm-specific escape sequences. Although I did not fully re-implement XParseColor, I covered the more important cases.

This means that the output formatting that works in the common GUI terminal emulators is now supported by the Qt console. For example, Nicolas Rougier's ASCII imshow now works:

http://www.loria.fr/~rougier/coding/software/numpy_imshow.py

@minrk
Copy link
Member

minrk commented Mar 1, 2011

This is cool.

I think what we really want, with the new two-process model, is to remove hard-coded xterm coloring entirely from the backend, and send css-style scoped fields to the frontends, which can render colors in an appropriate manner to their output.

@fperez
Copy link
Member

fperez commented Mar 11, 2011

I agree with Min for the long-term view, but I also think it's very valuable to have the frontend recognize cleanly all xterm escapes, since any script the user runs can spit these out (like Nicolas').

The code looks great to me, and I tested it both with pyqt and pyside, and both work.

Merge away, and thanks again for the great work!

This pull request was closed.
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.

None yet

3 participants