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

Add support for NO_COLOR #13

Open
LukeSavefrogs opened this issue Nov 9, 2022 · 0 comments
Open

Add support for NO_COLOR #13

LukeSavefrogs opened this issue Nov 9, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@LukeSavefrogs
Copy link
Owner

LukeSavefrogs commented Nov 9, 2022

From the NO_COLOR website:

Command-line software which adds ANSI color to its output by default should check for a NO_COLOR environment variable that, when present and not an empty string (regardless of its value), prevents the addition of ANSI color.

The program should check for the variable and eventually disable color output in the help file and other places.
Optionally, it could even have a --no-color flag and could check if the program is running in an interactive TTY; if so it could enable colors, otherwise disable them, similar to how grep works.

@LukeSavefrogs LukeSavefrogs added the enhancement New feature or request label Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant