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

Support shorter aliases for color escape codes #1098

Closed
blacksails opened this issue Dec 15, 2022 · 0 comments · Fixed by #1101
Closed

Support shorter aliases for color escape codes #1098

blacksails opened this issue Dec 15, 2022 · 0 comments · Fixed by #1101

Comments

@blacksails
Copy link
Contributor

blacksails commented Dec 15, 2022

#1095 introduced support for configuring colors through environment variables.

In order to support simpler configuration it would be nice to support shorter versions of the escape codes. The following values would be nice to map.

For the standard 16 colors (0-15)
red => \x1b[31m
1 => \x1b[31m
bright-red => \x1b[31;1m
8 => \x1b[31;1m

For extended 256 colors (16-255)
16 => \x1b[38;5;16m

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

Successfully merging a pull request may close this issue.

1 participant