Created
October 7, 2020 06:47
-
-
Save devjev/e9b42168a12c759b1248df215749e329 to your computer and use it in GitHub Desktop.
Clear Terminal in Rust
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn clear_terminal() { | |
print!("{esc}[2J{esc}[1;1H", esc = 27 as char); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment