We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5253294 commit 02d6461Copy full SHA for 02d6461
src/libsyntax/errors/emitter.rs
@@ -55,7 +55,8 @@ impl ColorConfig {
55
match *self {
56
ColorConfig::Always => true,
57
ColorConfig::Never => false,
58
- ColorConfig::Auto => stderr_isatty(),
+ ColorConfig::Auto => env::var("CLICOLOR_FORCE").unwrap_or("0".to_string()) != "0" ||
59
+ (stderr_isatty() && env::var("CLICOLOR").unwrap_or("1".to_string()) != "0"),
60
}
61
62
0 commit comments