[windows] Attempt to use tput to clear the screen
In some situations, this may clear the screen better than a call to
`cls`, and in all other cases `cls` is called anyway.
May help
@@ -28,7 +28,10 @@ pub struct Args {
#[cfg(target_family = "windows")]
pub fn clear_screen() {
- let _ = Command::new("cmd").arg("/c").arg("cls").status();
+ let _ = Command::new("cmd")
+ .arg("/c")
+ .arg("tput reset || cls")
+ .status();
}
#[cfg(target_family = "unix")]
