Trait Terminal
Source pub trait Terminal {
Show 16 methods
// Required methods
fn is_tty_input(&self) -> bool;
fn is_tty_output(&self) -> bool;
fn start_input(&mut self) -> Result<()>;
fn supported_styles(&self) -> Style;
fn max_colors(&self) -> (usize, usize, bool);
fn get_size(&self) -> Result<WinSize>;
fn get_style(&self) -> Style;
fn get_fg(&self) -> Color;
fn get_bg(&self) -> Color;
fn set_style(&mut self, style: Style, fg: Color, bg: Color) -> Result<()>;
fn set_cursor(&mut self, coords: Coords) -> Result<()>;
fn cursor_visible(&mut self, visible: bool) -> Result<()>;
fn write(&mut self, text: &str) -> Result<()>;
fn clear(&mut self) -> Result<()>;
fn flush_output(&mut self) -> Result<()>;
fn log(&mut self, text: &str);
}