clear console rust code example Example: rust clear console //you can use a control character fn main() { print!("{}[2J", 27 as char); }