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

NO_COLOR: the empty string should not disable color #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rjbs
Copy link

@rjbs rjbs commented Dec 19, 2024

According to no-color.org, which is cited as the authority behind the NO_COLOR environment variable:

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.

This branch brings the behavior of Term::ANSIColor in line with that spec.

Thanks very much for Term::ANSIColor, I use it often!

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 this pull request may close these issues.

1 participant