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:
Josh Gao 2017-11-21 00:55:58 -05:00
parent 9f82872943
commit 76d959b27b
1 changed files with 1 additions and 1 deletions

View File

@ -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)]