TuiTerminal

Struct TuiTerminal 

Source
pub struct TuiTerminal { /* private fields */ }

Implementations§

Source§

impl TuiTerminal

Source

pub fn new(tui_mode: TuiMode) -> Result<TuiTerminal, Box<dyn Error>>

Source

pub fn shift_cursor(&mut self, cursor_nav: CursorNav)

Source

pub fn set_cursor_position(&mut self, x: u16, y: u16)

Source

pub fn get_cursor_position(&mut self) -> Result<(u16, u16), Box<dyn Error>>

Source

pub fn set_font_color(&mut self, color: Color)

Source

pub fn set_background_color(&mut self, color: Color)

Source

pub fn set_bold(&mut self, is_bold: ThreeBool)

Source

pub fn set_underlined(&mut self, is_underlined: ThreeBool)

Source

pub fn set_italics(&mut self, is_italics: ThreeBool)

Source

pub fn set_inverted(&mut self, is_inverted: ThreeBool)

Source

pub fn set_blinking(&mut self, is_blinking: ThreeBool)

Source

pub fn set_cursor(&mut self, cursor_mode: CursorMode)

Source

pub fn get_cursor(&self) -> CursorMode

Source

pub fn scroll_terminal(&mut self, scroll: Scroll)

Source

pub fn save_cursor_position(&mut self)

Source

pub fn restore_cursor_position(&mut self)

Source

pub fn get_font_settings(&self) -> FontSettings

Source

pub fn set_font_settings(&mut self, font_settings: FontSettings)

Source

pub fn set_font_settings_passive(&mut self, font_settings: FontSettings)

Source

pub fn write<T: Into<StringPlus>>(&mut self, string_plus: T)

Source

pub fn println<T: Into<StringPlus>>(&mut self, string_plus: T)

Source

pub fn print<T: Into<StringPlus>>(&mut self, string_plus: T)

Source

pub fn clear_screen(&mut self)

Source

pub fn clear_end_line(&mut self)

Source

pub fn clear_beginning_line(&mut self)

Source

pub fn clear_line(&mut self)

Source

pub fn get_teminal_size(&self) -> Result<(u16, u16), CError>

Source

pub fn get_event(&self) -> TuiEvents

Source

pub fn default_settings(&mut self)

Source

pub fn enable_mouse_events(&mut self)

Source

pub fn disable_mouse_events(&mut self)

Trait Implementations§

Source§

impl Debug for TuiTerminal

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for TuiTerminal

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.