pub struct TerminalState { /* private fields */ }Implementations§
Source§impl TerminalState
impl TerminalState
pub fn new(rows: u16, cols: u16) -> Self
pub fn frame(&self) -> &FrameState
pub fn frame_mut(&mut self) -> &mut FrameState
pub fn title(&self) -> &str
pub fn rows(&self) -> u16
pub fn cols(&self) -> u16
pub fn is_wrapped(&self, row: u16) -> bool
pub fn cursor_row(&self) -> u16
pub fn cursor_col(&self) -> u16
pub fn mode(&self) -> u16
pub fn cells(&self) -> &[u8] ⓘ
pub fn set_title(&mut self, title: &str) -> bool
pub fn get_text( &self, start_row: u16, start_col: u16, end_row: u16, end_col: u16, ) -> String
pub fn get_all_text(&self) -> String
pub fn get_cell(&self, row: u16, col: u16) -> Vec<u8> ⓘ
pub fn feed_compressed(&mut self, data: &[u8]) -> bool
pub fn feed_compressed_batch(&mut self, batch: &[u8]) -> bool
Trait Implementations§
Source§impl Clone for TerminalState
impl Clone for TerminalState
Source§fn clone(&self) -> TerminalState
fn clone(&self) -> TerminalState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TerminalState
impl RefUnwindSafe for TerminalState
impl Send for TerminalState
impl Sync for TerminalState
impl Unpin for TerminalState
impl UnsafeUnpin for TerminalState
impl UnwindSafe for TerminalState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more