1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-24 21:57:41 +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::*;
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")