Open Ptival opened 4 years ago
This could be as simple as an option for colorama to "do nothing" and let scripts use os.getenv, although I don't see why it would be too hard for colorama to add in support.
There is a languishing PR, which I aim to merge imminently... https://github.com/tartley/colorama/pull/230
I implemented this in 5 seconds under Windows:
if os.getenv('NO_COLOR'):
colorama.init(strip=True, convert=False)
Similarly for FORCE_COLOR
and/or CLICOLOR_FORCE
While color is great when you want it, it can be annoying when you don't.
https://no-color.org/
This manifesto suggests supporting a
NO_COLOR
environment variable that disables all color codes when set.I think it'd be neat to officially support it.