Module events

Module events 

Source
Expand description

A module for handling key events

Structs§

CrosstermEventscrossterm
An iterator over the input keys using the crossterm crate
KeyEvent
Represents a key event.
KeyModifiers
Represents key modifiers (shift, control, alt).
TermionEventstermion
An iterator over the input keys using the termion crate
TestEvents
A simple wrapper around a KeyEvent iterator that can be used in tests.

Enums§

KeyCode
Represents a key.
Movement
Movements that can be captured from a KeyEvent. See the individual variants for what keys they capture

Traits§

EventIterator
A trait to represent a source of KeyEvents.

Functions§

get_eventscrossterm or termion
Gets the default EventIterator based on the features enabled.