Struct crossterm::Context [−][src]
pub struct Context { /* fields omitted */ }
Struct that stores the changed states of the terminal.
Methods
impl Context
[src]
impl Context
pub fn new() -> Context
[src]
pub fn new() -> Context
Create new Context where the terminals states can be handled.
pub fn restore_changes(&mut self)
[src]
pub fn restore_changes(&mut self)
Restore all changes that are made to the terminal.
pub fn register_change(&mut self, change: Box<IContextCommand>, key: i16)
[src]
pub fn register_change(&mut self, change: Box<IContextCommand>, key: i16)
Register new changed state with the given key.
pub fn undo_state(&mut self, state_key: i16)
[src]
pub fn undo_state(&mut self, state_key: i16)
Undo an specific state by the given state key.