From 22b544393b2a372004b23b1947eedeffd87c2f5e Mon Sep 17 00:00:00 2001 From: sharkdp Date: Fri, 9 Nov 2018 20:04:52 +0100 Subject: [PATCH] Enable ANSI support on Windows, closes #2 --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 2049b22..1a7d3fd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -242,6 +242,10 @@ fn run() -> io::Result<()> { } fn main() { + // Enable ANSI support for Windows + #[cfg(windows)] + let _ = ansi_term::enable_ansi_support(); + let result = run(); match result { Err(err) => {