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.
Writes a string of printable characters to the in-memory screen.
fn clear_line(&mut self)
fn clear_line(&mut self)
Clears the line containing the cursor on the in-memory screen.
fn reset_attributes(&mut self)
fn reset_attributes(&mut self)
Clears the in-memory screen’s currently active drawing attributes.
fn set_fgcolor(&mut self, color: Color)
fn set_fgcolor(&mut self, color: Color)
Sets the foreground color for subsequent drawing operations to the in-memory screen.
fn set_bgcolor(&mut self, color: Color)
fn set_bgcolor(&mut self, color: Color)
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.
fn set_italic(&mut self, italic: bool)
fn set_italic(&mut self, italic: bool)
Sets whether subsequent text drawn to the in-memory screen should be italic.
fn set_underline(&mut self, underline: bool)
fn set_underline(&mut self, underline: bool)
Sets whether subsequent text drawn to the in-memory screen should be underlined.
fn set_inverse(&mut self, inverse: bool)
fn set_inverse(&mut self, inverse: bool)
Sets whether subsequent text drawn to the in-memory screen should have its colors inverted.