How to handle changed ansicolor names?
See original GitHub issue@jonathanslenders It seems that the interpretation of all the ansi-color names changed with PTK2.
Now “ansired” is the dark color (instead of ansidarkred
) and ansibrightred
is new key for bright red.
In xonsh (atleast on windows without VT100) going to PTK 2 changes almost all colors from bright to dark (because on windows we had a hack that only used light colors)
I like the new names much better but they conflict a bit with pygments which still uses the old names.
Shouldn’t functions like style_from_pygments_cls()
and style_from_pygments_dict()
map the old names to the new names?
PTK 2 | Pygments |
---|---|
ansiblack | ansiblack |
ansired | ansidarkred |
ansigreen | ansidarkgreen |
ansiyellow | ansibrown |
ansiblue | ansidarkblue |
ansimagenta | ansipurple |
ansicyan | ansiteal |
ansigray | ansilightgray |
ansibrightblack | ansidarkgray |
ansibrightred | ansired |
ansibrightgreen | ansigreen |
ansibrightyellow | ansiyellow |
ansibrightblue | ansiblue |
ansibrightmagenta | ansifuchsia |
ansibrightcyan | ansiturquoise |
ansiwhite | ansiwhite |
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
ansi-color-names-vector is obsolete in emacs 28 #674 - GitHub
Even though doom themes changes ansi-color-names-vector, shell colors stay the same. ... control sequences differently), use 'ansi-color-normal- ...
Read more >How to change visual appearance of ANSI colors for *shell ...
After some exploring, we determined that @Gilles suggestion of modifying ansi-color-names-vector was the correct approach.
Read more >How to use the ANSIcolor plugin in Jenkins? - Stack Overflow
If you can't find the "Build Environment" section, go to Manage Plugins to double-check that the right plugin is really installed. (I recently...
Read more >ANSIColor - Color screen output using ANSI escape sequences
"\n"); print "\n"; # Map escape sequences back to color names. use Term::ANSIColor 1.04 qw(uncolor); my @names = uncolor('01;31'); print join(q{ }, @names), ......
Read more >ansi-color.el - EmacsWiki
In order for this to have any effect, `ansi-color-process-output' must ... given in `ansi-color-faces-vector' and `ansi-color-names-vector'.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great. I will make the necessary changes to xonsh. Closing this now.
For Pygments, see: https://bitbucket.org/birkenfeld/pygments-main/issues/1463/ansi-color-names-not-correct