mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-25 23:24:15 +01:00
fix no color on old windows cmd
This commit is contained in:
parent
5850ebdde6
commit
5aa250f3ef
@ -390,6 +390,9 @@ fn main() {
|
|||||||
panic::set_hook(Box::new(|_| {}));
|
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)) {
|
match panic::catch_unwind(|| handle_command(&cli.command, cli.port, cli.remote)) {
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
Err(payload) => {
|
Err(payload) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user