Skip to content

Commit

Permalink
Always enable ansi support on windows (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored May 7, 2018
1 parent a329482 commit 886220d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ impl Slurp for fs::File {
}

pub fn run() {
#[cfg(windows)]
enable_ansi_support().ok();

let matches = App::new(env!("CARGO_PKG_NAME"))
.version(concat!("v", env!("CARGO_PKG_VERSION")))
.author(env!("CARGO_PKG_AUTHORS"))
Expand Down Expand Up @@ -135,11 +138,6 @@ pub fn run() {
other => die!("Invalid argument `{}` to --color. This is a bug in just.", other),
};

if color.active() {
#[cfg(windows)]
enable_ansi_support().ok();
}

let set_count = matches.occurrences_of("SET");
let mut overrides = Map::new();
if set_count > 0 {
Expand Down

0 comments on commit 886220d

Please sign in to comment.