NO_COLOR is a community standard environement variable.
The general behavior is:
- A command line application emits colour when attached to a TTY, but no colour otherwise e.g. when attached to a pipe.
NO_COLOR stops the application from emitting colour even when attached to a TTY
- My extension to the standard is to add
FORCE_COLOR which forces the application to emit colour escape sequences even when not outputting to a TTY e.g. if we want to pipe into a log file with colour.
Originally posted by @jhol in #7443 (comment)
NO_COLORis a community standard environement variable.The general behavior is:
NO_COLORstops the application from emitting colour even when attached to a TTYFORCE_COLORwhich forces the application to emit colour escape sequences even when not outputting to a TTY e.g. if we want to pipe into a log file with colour.Originally posted by @jhol in #7443 (comment)