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
An increasing number of command-line software programs output text with ANSI color escape codes by
default. While some developers and users obviously prefer seeing these colors, many users don’t.
Unfortunately, every new piece of software seems to have a different way of disabling colored text
output and some software has no way at all.
Accepting the futility of trying to reverse this trend, an informal standard is hereby proposed:
All command-line software which outputs text with ANSI color added should check for the presence
of a NO_COLOR environment variable that, when present (regardless of its value), prevents the
addition of ANSI color.
By adopting this standard, users that prefer to have plain, non-colored text output can set one
environment variable in their shell to have it automatically affect all supported software.
Usage
no_color is a library crate which works with Cargo.
Add to Cargo.toml
To use, add the following to your Cargo.toml dependencies section: