Skip to content
Snippets Groups Projects
Commit f308fcfb authored by Martin Willers's avatar Martin Willers Committed by Brad King
Browse files

Terminal: Disable color output when CLICOLOR is set to 0

This commit completes the color output control support.
Previously, color output could only be forced ON by setting the environment
variable CLICOLOR_FORCE to 1. With this commit, color output can also be
disabled, by setting the environment variable CLICOLOR to 0.
This can be useful e.g. for processing of build logs when the cmake run
happens within a container (where isatty is true), but the processing
happens on the outside.

See http://bixense.com/clicolors/ for documentation of this convention.
parent bbf6cdef
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment