Skip to content

How to handle changed ansicolor names? #700

@melund

Description

@melund

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions