pub struct InputParser { /* private fields */ }Expand description
Per-pane VT input parser, matching tmux input_ctx.
Implementations§
Source§impl InputParser
impl InputParser
Sourcepub fn set_input_buffer_limit(&mut self, limit: usize)
pub fn set_input_buffer_limit(&mut self, limit: usize)
Updates the maximum regular string buffer size used for OSC/DCS input.
Sourcepub fn state(&self) -> InputState
pub fn state(&self) -> InputState
Returns the current parser state.
Sourcepub fn take_replies(&mut self) -> Vec<u8> ⓘ
pub fn take_replies(&mut self) -> Vec<u8> ⓘ
Returns and drains accumulated reply bytes.
Sourcepub fn take_since_ground(&mut self) -> Vec<u8> ⓘ
pub fn take_since_ground(&mut self) -> Vec<u8> ⓘ
Returns and drains accumulated since-ground bytes.
Sourcepub fn pending_bytes(&self) -> Vec<u8> ⓘ
pub fn pending_bytes(&self) -> Vec<u8> ⓘ
Returns any bytes still buffered in an incomplete parser state.
Sourcepub fn ground_timer_active(&self) -> bool
pub fn ground_timer_active(&self) -> bool
Returns true if the ground timer should be running.
Sourcepub fn ground_timer_expired(&mut self)
pub fn ground_timer_expired(&mut self)
Called by the server when the ground timer expires (5s timeout).
Sourcepub fn reset_to_ground(&mut self)
pub fn reset_to_ground(&mut self)
Resets the parser to ground state.
Sourcepub fn cell_state(&self) -> &CellState
pub fn cell_state(&self) -> &CellState
Returns a reference to the current cell state.
Sourcepub const fn saved_state(&self) -> &SavedState
pub const fn saved_state(&self) -> &SavedState
Returns the state restored by DECRC/SCP.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputParser
impl RefUnwindSafe for InputParser
impl Send for InputParser
impl Sync for InputParser
impl Unpin for InputParser
impl UnsafeUnpin for InputParser
impl UnwindSafe for InputParser
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