Skip to content

Commit b30ef81

Browse files
committed
fix: setting NO_COLOR should not print ansi codes for non-terminals
closes zkat#380
1 parent b82cc81 commit b30ef81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers/theme.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl Default for GraphicalTheme {
7171
fn default() -> Self {
7272
match std::env::var("NO_COLOR") {
7373
_ if !std::io::stdout().is_terminal() || !std::io::stderr().is_terminal() => {
74-
Self::ascii()
74+
Self::none()
7575
}
7676
Ok(string) if string != "0" => Self::unicode_nocolor(),
7777
_ => Self::unicode(),

0 commit comments

Comments
 (0)