mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-28 22:21:33 +02:00
fix screen clearing on windows
This commit is contained in:
parent
1456fa2ee9
commit
9b4e74ed30
@ -24,7 +24,7 @@ pub struct Args {
|
|||||||
|
|
||||||
#[cfg(target_family = "windows")]
|
#[cfg(target_family = "windows")]
|
||||||
pub fn clear_screen() {
|
pub fn clear_screen() {
|
||||||
let _ = Command::new("cls").status();
|
let _ = Command::new("cmd").arg("/c").arg("cls").status();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_family = "unix")]
|
#[cfg(target_family = "unix")]
|
||||||
|
Loading…
Reference in New Issue
Block a user