Skip to content

Commit

Permalink
fix: only enable colors for stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Oct 14, 2024
1 parent c892e27 commit 8d57b99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/config/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ impl Settings {
if !settings.color {
console::set_colors_enabled(false);
console::set_colors_enabled_stderr(false);
} else if *env::COLOR_NONTTY_OK {
console::set_colors_enabled(true);
} else if !cfg!(test) && *env::COLOR_NONTTY_OK {
console::set_colors_enabled_stderr(true);
}
if settings.ci {
Expand Down

0 comments on commit 8d57b99

Please sign in to comment.