[−][src]Enum tuikit::output::Command
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
ClearTitle
Clear the title of the terminal
Flush
Flush all the buffered contents
EraseScreen
Erase the entire screen
AlternateScreen(bool)
Enter(true)/Quit(false) the alternate screen mode
MouseSupport(bool)
Enable(true)/Disable(false) mouse support
EraseEndOfLine
Erase contents to the end of current line
EraseDown
Erase contents till the bottom of the screen
ResetAttributes
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
CursorGoto
move the cursor to (row, col)
Fields of CursorGoto
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
impl Clone for Command
[src]
fn clone(&self) -> Command
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Command
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,