You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
From the
NO_COLOR
website: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 howgrep
works.The text was updated successfully, but these errors were encountered: