Skip to content

Instantly share code, notes, and snippets.

@naltun
Created November 15, 2017 13:35
Show Gist options
  • Save naltun/05581174a3dfdf600527108cce14a027 to your computer and use it in GitHub Desktop.
Save naltun/05581174a3dfdf600527108cce14a027 to your computer and use it in GitHub Desktop.
fn clear_screen() {
let output = Command::new("clear").output().unwrap();
println!("{}", String::from_utf8_lossy(&output.stdout));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment