-
Notifications
You must be signed in to change notification settings - Fork 201
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
Unable to output boldface and some colors from executing python script in qtconsole. #273
Comments
I looked at It's a shame there does not seem to be a way to allow the user direct control of output (color and other formatting) unless I'm missing something with HTML capability. |
Looking through
I suppose the bug here is that there seems to be no documentation on this at least that I could find online. |
Note: I think the colors part on this issue is partially caused due to the mapping (from ANSI code values to svg color names) done at: qtconsole/qtconsole/ansi_code_processor.py Line 305 in 56e5a5e
Changing the color name assigned to the ANSI code |
Note: The bold code is being ignored since that's the default: qtconsole/qtconsole/ansi_code_processor.py Lines 62 to 64 in 56e5a5e
Maybe this should be set to |
Yep, it seems that should fix this issue. |
How would I go about setting a boldfaced text output? The ansi escape sequence does not work:
print('\033[1m This should be boldface.')
You also cannot use HTML or Markdown as neither of these work in qtconsole.
How would I go about outputting a foreground color of yellow?
print('\033[31m This is red.')
print('\033[32m This is green.')
print('\033[33m This is red but is supposed to be yellow.')
I noticed there is some history regarding ansi escape sequences and making text readable when using light or dark background terminal colors.
Is there a way to set boldface and yellow?
The text was updated successfully, but these errors were encountered: