mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-28 22:21:33 +02:00
Use tput reset
to clear screen.
Use `tput reset` instead of `clear` so that scrollback is cleared in addition to the currently visible portion of the terminal.
This commit is contained in:
parent
9f82872943
commit
76d959b27b
@ -29,7 +29,7 @@ pub fn clear_screen() {
|
||||
|
||||
#[cfg(target_family = "unix")]
|
||||
pub fn clear_screen() {
|
||||
let _ = Command::new("clear").status();
|
||||
let _ = Command::new("tput").arg("reset").status();
|
||||
}
|
||||
|
||||
#[allow(unknown_lints)]
|
||||
|
Loading…
Reference in New Issue
Block a user