pub enum ClearType {
All,
Purge,
FromCursorDown,
FromCursorUp,
CurrentLine,
UntilNewLine,
}
Expand description
Different ways to clear the terminal buffer.
Variants§
All
All cells.
Purge
All plus history
FromCursorDown
All cells from the cursor position downwards.
FromCursorUp
All cells from the cursor position upwards.
CurrentLine
All cells at the cursor row.
UntilNewLine
All cells from the cursor position until the new line.
Trait Implementations§
source§impl Ord for ClearType
impl Ord for ClearType
source§impl PartialEq<ClearType> for ClearType
impl PartialEq<ClearType> for ClearType
source§impl PartialOrd<ClearType> for ClearType
impl PartialOrd<ClearType> for ClearType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more