Trait textmode::Textmode[][src]

pub trait Textmode: Output {
Show 14 methods fn screen(&self) -> &Screen { ... }
fn write(&mut self, buf: &[u8]) { ... }
fn set_size(&mut self, rows: u16, cols: u16) { ... }
fn write_str(&mut self, text: &str) { ... }
fn move_to(&mut self, row: u16, col: u16) { ... }
fn clear(&mut self) { ... }
fn clear_line(&mut self) { ... }
fn reset_attributes(&mut self) { ... }
fn set_fgcolor(&mut self, color: Color) { ... }
fn set_bgcolor(&mut self, color: Color) { ... }
fn set_bold(&mut self, bold: bool) { ... }
fn set_italic(&mut self, italic: bool) { ... }
fn set_underline(&mut self, underline: bool) { ... }
fn set_inverse(&mut self, inverse: bool) { ... }
}
Expand description

Provides the methods used to manipulate the in-memory screen.

Provided methods

Returns the in-memory screen itself. This is the screen that will be drawn on the next call to refresh.

Writes a sequence of bytes, potentially containing terminal escape sequences, to the in-memory screen.

Sets the terminal size for the in-memory screen.

Writes a string of printable characters to the in-memory screen.

Moves the in-memory screen’s cursor.

Clears the in-memory screen.

Clears the line containing the cursor on the in-memory screen.

Clears the in-memory screen’s currently active drawing attributes.

Sets the foreground color for subsequent drawing operations to the in-memory screen.

Sets the background color for subsequent drawing operations to the in-memory screen.

Sets whether subsequent text drawn to the in-memory screen should be bold.

Sets whether subsequent text drawn to the in-memory screen should be italic.

Sets whether subsequent text drawn to the in-memory screen should be underlined.

Sets whether subsequent text drawn to the in-memory screen should have its colors inverted.

Implementors