Merge pull request #72 from jmgao/master
Use `tput reset` to clear screen.
This commit is contained in:
commit
1456fa2ee9
|
@ -29,7 +29,7 @@ pub fn clear_screen() {
|
||||||
|
|
||||||
#[cfg(target_family = "unix")]
|
#[cfg(target_family = "unix")]
|
||||||
pub fn clear_screen() {
|
pub fn clear_screen() {
|
||||||
let _ = Command::new("clear").status();
|
let _ = Command::new("tput").arg("reset").status();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unknown_lints)]
|
#[allow(unknown_lints)]
|
||||||
|
|
Loading…
Reference in New Issue