mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
Enable ANSI colors on Windows 10 (#3583)
This commit is contained in:
parent
1dd3cbd047
commit
50f9db21da
1 changed files with 4 additions and 0 deletions
|
@ -69,6 +69,10 @@ quoting the executed command, along with the relevant file contents and `pyproje
|
|||
}));
|
||||
}
|
||||
|
||||
// Enabled ANSI colors on Windows 10.
|
||||
#[cfg(windows)]
|
||||
assert!(colored::control::set_virtual_terminal(true).is_ok());
|
||||
|
||||
let log_level: LogLevel = (&log_level_args).into();
|
||||
set_up_logging(&log_level)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue