fix no color on old windows cmd

This commit is contained in:
Mateusz Faderewski 2024-09-28 13:23:47 +02:00
parent 5850ebdde6
commit 5aa250f3ef

View File

@ -390,6 +390,9 @@ fn main() {
panic::set_hook(Box::new(|_| {}));
}
#[cfg(windows)]
colored::control::set_virtual_terminal(true).ok();
match panic::catch_unwind(|| handle_command(&cli.command, cli.port, cli.remote)) {
Ok(_) => {}
Err(payload) => {