Skip to main content

clear_screen

Function clear_screen 

Source
pub fn clear_screen(term: &Term)
Expand description

Clears the screen and moves the cursor to the top left corner.

Does nothing unless standard output is a terminal (Term::interactive), so piped output and tests never receive the escape sequences.