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

Use ANSI escape codes with console/qtconsole #163

Closed
kylebarron opened this issue Sep 12, 2018 · 4 comments
Closed

Use ANSI escape codes with console/qtconsole #163

kylebarron opened this issue Sep 12, 2018 · 4 comments
Milestone

Comments

@kylebarron
Copy link
Owner

Jupyter console and qtconsole support the use of ANSI escape codes to "format" text. See jupyter/qtconsole#273. Apparently bold only works in the console and not qtconsole, though underline works in both.

We could use this to display somewhat-formatted help in (qt)console. Though it might be too much effort.

What do you think @mcaceresb?

image

image

List of ANSI escape codes: https://stackoverflow.com/questions/4842424/list-of-ansi-color-escape-sequences

@mcaceresb
Copy link
Collaborator

Too muh effort, tbh. We'd have to parse the help file with no API. If pandoc has a html to ASCII escapes, on the other hand...

@kylebarron
Copy link
Owner Author

Well we could use the HTML and convert <b>bold text</b> to whatever that is in ANSI...

@mcaceresb
Copy link
Collaborator

Is that feasible? I suppose if you're just doing italics, bold, and underline maybe... Now that you mention it, is there a lot more than that in the HTML files? I guess all the formatted tables and lines, but that wouldn't translate into ANSI codes anyway, right?

@kylebarron
Copy link
Owner Author

Yeah it's pretty much just italics, bold and underline

@kylebarron kylebarron added this to the Someday milestone Sep 14, 2018
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

No branches or pull requests

2 participants