Skip to content

Commit

Permalink
fix no color on old windows cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Polprzewodnikowy committed Sep 28, 2024
1 parent 5850ebd commit 5aa250f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sw/deployer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 5aa250f

Please sign in to comment.