Modules§
- event
- A module to read events.
Enums§
- Event
- Represents an event.
Functions§
- disable_
raw_ mode - Disable raw mode
- enable_
raw_ mode - Enable raw mode
- exit_
if_ kb_ interrupt - If the event is a
Ctrl+C(Keyboard Interrupt), exit immediately. - exit_
raw_ mode - Disable raw mode and exit the process
- read
- Get an
Event. When raw mode is disabled, the input will only be registered after enter is pressed. Callenable_raw_mode()at the beginning of the program to avoid having to press enter - read_
and_ handle_ kb_ interrupt - Get an input, with or without blocking, and exit if the input is a keyboard interrupt (Ctrl+C)
- read_
non_ blocking - Get an
Event, without blocking. When raw mode is disabled, the input will only be registered after enter is pressed. Callenable_raw_mode()at the beginning of the program to avoid having to press enter