pub struct CrossTerm { /* private fields */ }
Expand description
A thin wrapper over the Crossterm library.
Implementations§
Trait Implementations§
source§impl Tui for CrossTerm
impl Tui for CrossTerm
source§fn get_color_mode(&self) -> ColorMode
fn get_color_mode(&self) -> ColorMode
Get the supported color mode.
source§fn reset(&mut self) -> Result<(), DisplayError>
fn reset(&mut self) -> Result<(), DisplayError>
Reset the terminal interface to a default state. Read more
source§fn flush(&mut self) -> Result<(), DisplayError>
fn flush(&mut self) -> Result<(), DisplayError>
Flush the contents printed to the terminal interface. Read more
source§fn print(&mut self, s: &str) -> Result<(), DisplayError>
fn print(&mut self, s: &str) -> Result<(), DisplayError>
Print text to the terminal interface. Read more
source§fn set_color(&mut self, colors: Colors) -> Result<(), DisplayError>
fn set_color(&mut self, colors: Colors) -> Result<(), DisplayError>
Set the color attribute of text printed to the terminal interface. Read more
source§fn set_dim(&mut self, dim: bool) -> Result<(), DisplayError>
fn set_dim(&mut self, dim: bool) -> Result<(), DisplayError>
Set the dimmed style attribute of text printed to the terminal interface. Read more
source§fn set_underline(&mut self, underline: bool) -> Result<(), DisplayError>
fn set_underline(&mut self, underline: bool) -> Result<(), DisplayError>
Set the underlined style attribute of text printed to the terminal interface. Read more
source§fn set_reverse(&mut self, reverse: bool) -> Result<(), DisplayError>
fn set_reverse(&mut self, reverse: bool) -> Result<(), DisplayError>
Set the reversed style attribute of text printed to the terminal interface. Read more
source§fn move_to_column(&mut self, x: u16) -> Result<(), DisplayError>
fn move_to_column(&mut self, x: u16) -> Result<(), DisplayError>
Move the cursor position
x
characters from the start of the line. Read moresource§fn move_next_line(&mut self) -> Result<(), DisplayError>
fn move_next_line(&mut self) -> Result<(), DisplayError>
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§
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