pub struct CrossTerm { /* private fields */ }
Expand description
A thin wrapper over the Crossterm library.
Implementations
Trait Implementations
sourceimpl Tui for CrossTerm
impl Tui for CrossTerm
sourcefn get_color_mode(&self) -> ColorMode
fn get_color_mode(&self) -> ColorMode
Get the supported color mode.
sourcefn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flush the contents printed to the terminal interface. Read more
sourcefn set_color(&mut self, colors: Colors) -> Result<()>
fn set_color(&mut self, colors: Colors) -> Result<()>
Set the color attribute of text printed to the terminal interface. Read more
sourcefn set_dim(&mut self, dim: bool) -> Result<()>
fn set_dim(&mut self, dim: bool) -> Result<()>
Set the dimmed style attribute of text printed to the terminal interface. Read more
sourcefn set_underline(&mut self, underline: bool) -> Result<()>
fn set_underline(&mut self, underline: bool) -> Result<()>
Set the underlined style attribute of text printed to the terminal interface. Read more
sourcefn set_reverse(&mut self, reverse: bool) -> Result<()>
fn set_reverse(&mut self, reverse: bool) -> Result<()>
Set the reversed style attribute of text printed to the terminal interface. Read more
sourcefn read_event() -> Result<Option<Event>>
fn read_event() -> Result<Option<Event>>
Read the next input event from the terminal interface. Read more
sourcefn move_to_column(&mut self, x: u16) -> Result<()>
fn move_to_column(&mut self, x: u16) -> Result<()>
Move the cursor position x
characters from the start of the line. Read more
sourcefn move_next_line(&mut self) -> Result<()>
fn move_next_line(&mut self) -> Result<()>
Move the cursor to the next line. Read more
Auto Trait Implementations
impl RefUnwindSafe for CrossTerm
impl Send for CrossTerm
impl Sync for CrossTerm
impl Unpin for CrossTerm
impl UnwindSafe for CrossTerm
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more