pub struct TtyEventSource { /* private fields */ }Expand description
Native Unix event source (raw terminal bytes → Event).
Manages terminal feature toggles by emitting the appropriate escape
sequences. Reads raw bytes from the tty fd, feeds them through
InputParser, and serves parsed events via poll_event/read_event.
Implementations§
Trait Implementations§
Source§impl BackendEventSource for TtyEventSource
impl BackendEventSource for TtyEventSource
Source§fn size(&self) -> Result<(u16, u16), Self::Error>
fn size(&self) -> Result<(u16, u16), Self::Error>
Query current terminal dimensions (columns, rows).
Source§fn set_features(&mut self, features: BackendFeatures) -> Result<(), Self::Error>
fn set_features(&mut self, features: BackendFeatures) -> Result<(), Self::Error>
Enable or disable terminal features (mouse, paste, focus, kitty keyboard). Read more
Auto Trait Implementations§
impl Freeze for TtyEventSource
impl !RefUnwindSafe for TtyEventSource
impl Send for TtyEventSource
impl !Sync for TtyEventSource
impl Unpin for TtyEventSource
impl UnsafeUnpin for TtyEventSource
impl !UnwindSafe for TtyEventSource
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