pub enum ControlType {
Show 17 variants
Bell,
CarriageReturn,
Home,
Clear,
ShowCursor,
HideCursor,
EnableAltScreen,
DisableAltScreen,
SetTitle,
CursorUp(u16),
CursorDown(u16),
CursorForward(u16),
CursorBackward(u16),
EraseInLine(u8),
HyperlinkStart {
url: Arc<str>,
id: Option<Arc<str>>,
},
HyperlinkEnd,
MoveTo {
x: u16,
y: u16,
},
}Expand description
Control codes that can be embedded in output.
Variants§
Bell
Ring the terminal bell.
CarriageReturn
Carriage return.
Home
Move cursor to home position.
Clear
Clear the screen.
ShowCursor
Show the cursor.
HideCursor
Hide the cursor.
EnableAltScreen
Enable alternate screen buffer.
DisableAltScreen
Disable alternate screen buffer.
SetTitle
Set window title.
CursorUp(u16)
Move cursor up N lines.
CursorDown(u16)
Move cursor down N lines.
CursorForward(u16)
Move cursor forward N columns.
CursorBackward(u16)
Move cursor backward N columns.
EraseInLine(u8)
Erase in line (0=cursor to end, 1=start to cursor, 2=entire line).
HyperlinkStart
Start an OSC 8 hyperlink.
HyperlinkEnd
End an OSC 8 hyperlink.
MoveTo
Move the cursor to an absolute position (x, y), 0-based.
Trait Implementations§
Source§impl Clone for ControlType
impl Clone for ControlType
Source§fn clone(&self) -> ControlType
fn clone(&self) -> ControlType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlType
impl Debug for ControlType
Source§impl PartialEq for ControlType
impl PartialEq for ControlType
impl Eq for ControlType
impl StructuralPartialEq for ControlType
Auto Trait Implementations§
impl Freeze for ControlType
impl RefUnwindSafe for ControlType
impl Send for ControlType
impl Sync for ControlType
impl Unpin for ControlType
impl UnwindSafe for ControlType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.