summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2020-11-11 20:24:43 +0100
committerGitHub <noreply@github.com>2020-11-11 20:24:43 +0100
commitbe882fcda9a2fafae35e66c144bf246008109542 (patch)
tree7d19bf6a61657be07059683755578660b3490a8f /src/main.rs
parent7dba2c8a0f3c6c28b065e6d495d09ddaab257a13 (diff)
fix(windows): configure console to enable ANSI support (#1646)
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 3957faa6e..2dd9208f0 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")