pub enum TerminalControlMsg {
HideCursor,
ShowCursor,
EnterAltScreen,
ExitAltScreen,
SetWindowTitle(String),
EnableMouseCellMotion,
EnableMouseAllMotion,
DisableMouse,
ClearScreen,
ClearLine,
}Expand description
Special message types for terminal control
Variants§
HideCursor
Hide the terminal cursor from view
ShowCursor
Show the terminal cursor
EnterAltScreen
Enter the alternate screen buffer (like vim/less use)
ExitAltScreen
Exit the alternate screen buffer and return to main screen
SetWindowTitle(String)
Set the terminal window title to the given string
EnableMouseCellMotion
Enable mouse tracking for cell motion (only when button pressed)
EnableMouseAllMotion
Enable mouse tracking for all motion events (including hover)
DisableMouse
Disable all mouse tracking
ClearScreen
Clear the entire screen
ClearLine
Clear the current line
Trait Implementations§
Source§impl Clone for TerminalControlMsg
impl Clone for TerminalControlMsg
Source§fn clone(&self) -> TerminalControlMsg
fn clone(&self) -> TerminalControlMsg
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TerminalControlMsg
impl RefUnwindSafe for TerminalControlMsg
impl Send for TerminalControlMsg
impl Sync for TerminalControlMsg
impl Unpin for TerminalControlMsg
impl UnsafeUnpin for TerminalControlMsg
impl UnwindSafe for TerminalControlMsg
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<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter