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
add color role #26
Comments
Turns out, the list is not longer the ancient 16 from DOS circa Xterm[14] and recent-enough versions of KDE's Konsole program support ISO-8613-3 24-bit fo ESC[38;2;;;m Select RGB foreground color If these are widely supported, the list of colors could be expanded. On the other hand, 16 colors has been good enough for thirty years.... Thanks, |
I'm thinking this would be a comma-separated list: "{C:bold,green,bg-red,italics}" Would be nice to support "/%s" as well, like: xo_emit("{C:/bold,%s,bg-%s}", fg, bg); |
Debugging note (to self): printf '\033[7m\033[33mtest\033[27m\n' |
(note from Olevole) On Friday 27 February 2015 19:20:52 you wrote:
I totally agree with you - for console output is more than enough. I'm a few WBR, TOX ID: olevole@toxme.se |
Got time to work on this tonight:
Need to document it and add html support, but the plumbing's all there. |
Done. Will be in next release. |
It's amazing, thank You! |
You’re very welcome. Check out “xohtml” to see your content in colorized html also. Thanks,
|
Oleg Ginzburg writes:
Color would be a useful enhancement, but it can't be done by intermixing
escape sequnces with data. It would need to be something more explicit
and meaningful, something like:
The new "C" role would accept a name that would appear as escape
sequences for text and "style" attributes for HTML. The list of
color names should be freakishly small, to keep it portable, and
unknown colors would be ignored (with a warning).
Hmm... instead of directly making a color style attribute, I'd probably
opt for a color class, allowing CSS files to adjust it when/if needed.
And no, it won't support blinking ;^)
Thanks,
Phil
The text was updated successfully, but these errors were encountered: