[−][src]Function winconsole::console::clear
pub fn clear() -> WinResult<()>
Clears the console.
Examples
println!("Hello, wolrd!"); println!("Wait, that's not right.."); console::clear().unwrap(); println!("Hello, world!");
Errors
InvalidHandleError
: Returned if an invalid handle to the console output is retrieved or used.IoError
: Returned if an OS error occurs.