Skip to main content

clear

Function clear 

Source
pub fn clear()
Expand description

Clear the terminal screen.

Uses ANSI escape sequences to clear the screen and move cursor to home. On non-TTY outputs, this is a no-op.