Enum termwiz::input::InputEvent
source · pub enum InputEvent {
Key(KeyEvent),
Mouse(MouseEvent),
PixelMouse(PixelMouseEvent),
Resized {
cols: usize,
rows: usize,
},
Paste(String),
Wake,
}Variants§
Key(KeyEvent)
Mouse(MouseEvent)
PixelMouse(PixelMouseEvent)
Resized
Detected that the user has resized the terminal
Paste(String)
For terminals that support Bracketed Paste mode, pastes are collected and reported as this variant.
Wake
The program has woken the input thread.
Trait Implementations§
source§impl Clone for InputEvent
impl Clone for InputEvent
source§fn clone(&self) -> InputEvent
fn clone(&self) -> InputEvent
Returns a copy 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 moresource§impl Debug for InputEvent
impl Debug for InputEvent
source§impl PartialEq<InputEvent> for InputEvent
impl PartialEq<InputEvent> for InputEvent
source§fn eq(&self, other: &InputEvent) -> bool
fn eq(&self, other: &InputEvent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.