Enum tuikit::output::Command [−][src]
Instead of calling functions of Output
, we could send commands.
Variants
PutChar(char)
Put a char to screen
Write(String)
Write content to screen (escape codes will be escaped)
SetTitle(String)
Set the title of the terminal
Clear the title of the terminal
Flush all the buffered contents
Erase the entire screen
AlternateScreen(bool)
Enter(true)/Quit(false) the alternate screen mode
MouseSupport(bool)
Enable(true)/Disable(false) mouse support
Erase contents to the end of current line
Erase contents till the bottom of the screen
Reset attributes
Fg(Color)
Set the foreground color
Bg(Color)
Set the background color
Effect(Effect)
Set the effect(e.g. underline, dim, bold, ...)
SetAttribute(Attr)
Set the fg, bg & effect.
AutoWrap(bool)
Enable(true)/Disable(false) autowrap
move the cursor to (row, col)
CursorUp(usize)
move cursor up x
lines
CursorDown(usize)
move cursor down x
lines
CursorLeft(usize)
move cursor left x
characters
CursorRight(usize)
move cursor right x
characters
CursorShow(bool)
Show(true)/Hide(false) cursor
BracketedPaste(bool)
Enable(true)/Disable(false) the bracketed paste mode
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Command
[src]
impl Send for Command
[src]
impl Sync for Command
[src]
impl Unpin for Command
[src]
impl UnwindSafe for Command
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,