From 5aa250f3ef4b25cf266b8cfe057f4016715ef605 Mon Sep 17 00:00:00 2001 From: Mateusz Faderewski Date: Sat, 28 Sep 2024 13:23:47 +0200 Subject: [PATCH] fix no color on old windows cmd --- sw/deployer/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sw/deployer/src/main.rs b/sw/deployer/src/main.rs index aecbefa..d203c5b 100644 --- a/sw/deployer/src/main.rs +++ b/sw/deployer/src/main.rs @@ -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) => {