ogham / rust-ansi-term

Rust library for ANSI terminal colours and styles (bold, underline)
https://crates.io/crates/ansi_term
MIT License
457 stars 77 forks source link

NO_COLOR support #68

Open kucharskim opened 4 years ago

kucharskim commented 4 years ago

I see many projects using this library, and I don't see simple way to disable colored output for those apps (without code modification). In production environments I like to grep easily logs and colors are making it super difficult.

More info about NO_COLOR environment variable at https://no-color.org/

AndreasBackx commented 10 months ago

If NO_COLOR support is added, might be additionally good to add support for CLICOLOR_FORCE which allows you to always enable it. See http://bixense.com/clicolors/.

docwhat commented 10 months ago

The good thing about standards is that there are so many to choose from.   - Andrew Tanenbaum