From be882fcda9a2fafae35e66c144bf246008109542 Mon Sep 17 00:00:00 2001 From: David Knaack Date: Wed, 11 Nov 2020 20:24:43 +0100 Subject: [PATCH] fix(windows): configure console to enable ANSI support (#1646) --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 3957faa6..2dd9208f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,6 +9,9 @@ use starship::module::ALL_MODULES; use starship::*; fn main() { + // Configure the current terminal on windows to support ANSI escape sequences. + #[cfg(windows)] + let _ = ansi_term::enable_ansi_support(); logger::init(); let status_code_arg = Arg::with_name("status_code")