Skip to content

Commit 91ad6da

Browse files
authored
fix(display_color): disable ANSI color for dumb terminals (#585)
1 parent 90e88f3 commit 91ad6da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/mun_compiler/src/driver/display_color.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl DisplayColor {
2323
/// `term` environment variable and the operating system.
2424
fn terminal_support_ansi() -> bool {
2525
let supports_color = if let Ok(terminal) = env::var("TERM") {
26-
terminal.as_str() == "dumb"
26+
terminal.as_str() != "dumb"
2727
} else {
2828
#[cfg(target_os = "windows")]
2929
let term_support = cmd_supports_ansi();

0 commit comments

Comments
 (0)