Skip to content
Myr

Auto disable colored output for unsupported Windows shells

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by J.W · committed by David Peter · parent 6a01faf · Browse files · 2 files+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−1 removed

  • other:+3 added−1 removed

2 files+3 added−1 removed

modified:src/main.rs+2 added
77 unmodified lines
78 Some("always") => true,79 Some("never") => false,80 _ => atty::is(Stream::Stdout),81 };82 #[cfg(windows)]83 let colored_output = colored_output && ansi_term::enable_ansi_support().is_ok();8485 let ls_colors = if colored_output {86 Some(87 env::var("LS_COLORS")
56 unmodified lines
modified:Cargo.toml+1 added-1 removed