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