Skip to main content

write_ed

Function write_ed 

Source
pub fn write_ed<W: Write>(w: &mut W, n: u16) -> Result<()>
Expand description

Erase in display with ED, ESC [ <n> J.

n == 0 emits ESC [ J (cursor through end of screen), 1 erases start through cursor, 2 erases the visible screen, and 3 requests scrollback/display clearing where supported.