Enable ANSI support on Windows 10

This commit is contained in:
sharkdp authored and David Peter committed 2018-05-13 09:58:16 +02:00
1 parent 3ee0e56315
commit ca865f9d26
1 file changed
+3
+3
View File
@@ -15,6 +15,9 @@ impl App {
pub fn new() -> Self {
let interactive_output = atty::is(Stream::Stdout);
#[cfg(windows)]
let interactive_output = interactive_output && ansi_term::enable_ansi_support().is_ok();
App {
matches: Self::matches(interactive_output),
interactive_output,