Always enable ansi support on windows (#317)
This commit is contained in:
parent
a3294822c3
commit
886220d4cc
@ -44,6 +44,9 @@ impl Slurp for fs::File {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn run() {
|
pub fn run() {
|
||||||
|
#[cfg(windows)]
|
||||||
|
enable_ansi_support().ok();
|
||||||
|
|
||||||
let matches = App::new(env!("CARGO_PKG_NAME"))
|
let matches = App::new(env!("CARGO_PKG_NAME"))
|
||||||
.version(concat!("v", env!("CARGO_PKG_VERSION")))
|
.version(concat!("v", env!("CARGO_PKG_VERSION")))
|
||||||
.author(env!("CARGO_PKG_AUTHORS"))
|
.author(env!("CARGO_PKG_AUTHORS"))
|
||||||
@ -135,11 +138,6 @@ pub fn run() {
|
|||||||
other => die!("Invalid argument `{}` to --color. This is a bug in just.", other),
|
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 set_count = matches.occurrences_of("SET");
|
||||||
let mut overrides = Map::new();
|
let mut overrides = Map::new();
|
||||||
if set_count > 0 {
|
if set_count > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user