Enum termimad::Event [−][src]
pub enum Event {
Key(KeyEvent),
Click(u16, u16, KeyModifiers),
RightClick(u16, u16, KeyModifiers),
DoubleClick(u16, u16),
Resize(u16, u16),
Wheel(i32),
}
Expand description
a valid user event
Variants
Key(KeyEvent)
Tuple Fields of Key
0: KeyEvent
Click(u16, u16, KeyModifiers)
Tuple Fields of Click
RightClick(u16, u16, KeyModifiers)
Tuple Fields of RightClick
terminal was resized. Contains the new dimensions
Wheel(i32)
mouse wheel turns. contains -1 if up or 1 if down
Tuple Fields of Wheel
0: i32
Implementations
convert a crossterm event into a termimad one.
normalize \r and \n into Enter (useful for key combinations)
To get a double-click you’ll either need to use a termimad event-source or to do the computation yourself.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more