1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-09-28 21:19:10 +00:00

fix(windows): configure console to enable ANSI support (#1646)

This commit is contained in:
David Knaack 2020-11-11 20:24:43 +01:00 committed by GitHub
parent 7dba2c8a0f
commit be882fcda9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,9 @@ use starship::module::ALL_MODULES;
use starship::*; use starship::*;
fn main() { fn main() {
// Configure the current terminal on windows to support ANSI escape sequences.
#[cfg(windows)]
let _ = ansi_term::enable_ansi_support();
logger::init(); logger::init();
let status_code_arg = Arg::with_name("status_code") let status_code_arg = Arg::with_name("status_code")