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

Make use of color capabilities of the terminal #3

Closed
blefloch opened this issue Aug 16, 2015 · 2 comments
Closed

Make use of color capabilities of the terminal #3

blefloch opened this issue Aug 16, 2015 · 2 comments

Comments

@blefloch
Copy link
Owner

On my terminal, running

pdftex -8bit '\message{normal\pdfunescapehex{1B5B}1;9;34mFANCY\pdfunescapehex{1B5B}mnormal}'

Gives me "normalFANCYnormal" with "FANCY" written in bold blue font and crossed through. It would sometimes be very useful to have colors distinguishing category codes of tokens, or underlining different macro parameters, etc.

@blefloch
Copy link
Owner Author

This probably interacts badly with line-wrapping. It could be done in a post-processing step, or by doubling the line-length and replacing each character by two characters, the first indicating the style.

@blefloch
Copy link
Owner Author

blefloch commented Jan 8, 2019

Thinking some more, this is really hard. On the one hand it can only work in some terminals and engines (e.g. pdfTeX and XeTeX need to be called with the -8bit flag). On the other hand, the current architecture of unravel doesn't allow to have independently a display version and a real version of the input, previous tokens, and output.

Probably not worth it.

@blefloch blefloch closed this as completed Jan 8, 2019
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

1 participant