pub struct VteParser {
state: State,
params: Vec<u16>,
current_param: u16,
osc_string: String,
private_mode: bool,
fg: Color,
bg: Color,
bold: bool,
italic: bool,
underline: bool,
pub cursor_visible: bool,
}Fields§
§state: State§params: Vec<u16>§current_param: u16§osc_string: String§private_mode: boolSet when ? is seen in CSI — indicates DEC private mode.
fg: Color§bg: Color§bold: bool§italic: bool§underline: bool§cursor_visible: boolWhether the cursor is currently visible.
Implementations§
Source§impl VteParser
impl VteParser
pub fn new() -> Self
pub fn feed(&mut self, buf: &mut TerminalBuffer, byte: u8)
pub fn feed_str(&mut self, buf: &mut TerminalBuffer, data: &[u8])
fn ground(&mut self, buf: &mut TerminalBuffer, byte: u8)
fn escape(&mut self, buf: &mut TerminalBuffer, byte: u8)
fn csi_entry(&mut self, buf: &mut TerminalBuffer, byte: u8)
fn csi_param(&mut self, buf: &mut TerminalBuffer, byte: u8)
fn osc_string_state(&mut self, byte: u8)
fn dcs_string_state(&mut self, byte: u8)
Sourcefn dispatch_csi(&mut self, buf: &mut TerminalBuffer, byte: u8)
fn dispatch_csi(&mut self, buf: &mut TerminalBuffer, byte: u8)
Dispatch a complete CSI sequence.
byte is the final byte (the letter). self.params holds the
accumulated numeric parameters. self.private_mode is set when ?
was seen after ESC [.
fn handle_decset( &mut self, params: &[u16], _buf: &mut TerminalBuffer, set: bool, )
fn handle_osc(&mut self)
fn dispatch_sgr(&mut self, params: &[u16])
fn reset_style(&mut self)
Auto Trait Implementations§
impl Freeze for VteParser
impl RefUnwindSafe for VteParser
impl Send for VteParser
impl Sync for VteParser
impl Unpin for VteParser
impl UnsafeUnpin for VteParser
impl UnwindSafe for VteParser
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.