We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02c3549 commit 1d47462Copy full SHA for 1d47462
src/windows_term/mod.rs
@@ -69,6 +69,9 @@ pub(crate) fn is_a_color_terminal(out: &Term) -> bool {
69
if !is_a_terminal(out) {
70
return false;
71
}
72
+ if env::var("NO_COLOR").is_ok() {
73
+ return false;
74
+ }
75
if msys_tty_on(out) {
76
return match env::var("TERM") {
77
Ok(term) => term != "dumb",
0 commit comments