[][src]Function bear_lib_terminal::terminal::clear

pub fn clear(area: Option<Rect>)

Clears the screen (either partailly or fully)

If area is None, clears the entire screen, all layers (identically to the terminal_clear() C API function.

Otherwise clears specified area on the current layer, as would the terminal_clear_area() C API function.