pub struct Screen { /* private fields */ }Implementations§
Source§impl Screen
impl Screen
pub fn new(cols: u16, rows: u16, scrollback_limit: usize) -> Self
Sourcepub fn capture_text(&self) -> Vec<String>
pub fn capture_text(&self) -> Vec<String>
Capture current screen as text lines (trailing whitespace trimmed).
pub fn capture_scrollback_last(&self, n: usize) -> Vec<String>
pub fn capture_scrollback_all(&self) -> Vec<String>
pub fn scrollback_len(&self) -> usize
pub fn set_scrollback_limit(&mut self, limit: usize)
pub fn scrollback_limit(&self) -> usize
pub fn cursor_visible(&self) -> bool
pub fn grid(&self) -> &[Vec<Cell>]
Auto Trait Implementations§
impl Freeze for Screen
impl RefUnwindSafe for Screen
impl Send for Screen
impl Sync for Screen
impl Unpin for Screen
impl UnsafeUnpin for Screen
impl UnwindSafe for Screen
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