How To Clear The Console Rust

[Solved] How To Clear The Console Rust | Rust - Code Explorer | yomemimo.com
Question : how to clear the console rust

Answered by : coding-wizard

print!("{}c",27 as char);

Source : https://stackoverflow.com/questions/34837011/how-to-clear-the-terminal-screen-in-rust-after-a-new-line-is-printed#:~:text=(%22%5Cx1B%5B2J%5C,first%20col%20of%20the%20screen.&text=Show%20activity%20on%20this%20post.,-Solutions%20provided%20by | Last Update : Sat, 23 Apr 22

Question : rust clear console

Answered by : delightful-duck-e8k2ponp7bxk

//you can use a control character
fn main() { print!("{}[2J", 27 as char);
}

Source : https://stackoverflow.com/questions/34837011/how-to-clear-the-terminal-screen-in-rust-after-a-new-line-is-printed | Last Update : Sun, 21 Feb 21

Answers related to how to clear the console rust

Code Explorer Popular Question For Rust