fix(windows): configure console to enable ANSI support (#1646)
This commit is contained in:
parent
7dba2c8a0f
commit
be882fcda9
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue