question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
melundcommented, Aug 2, 2018

Great. I will make the necessary changes to xonsh. Closing this now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found