Skip to content

NO_COLOR: the empty string should not disable color#10

Open
rjbs wants to merge 1 commit intorra:mainfrom
rjbs:no-color-empty
Open

NO_COLOR: the empty string should not disable color#10
rjbs wants to merge 1 commit intorra:mainfrom
rjbs:no-color-empty

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