Expand description
Git Interactive Rebase Tool - Input Module
§Description
This module is used to handle working with input events.
§Test Utilities
To facilitate testing the usages of this crate, a set of testing utilities are provided. Since these utilities are not tested, and often are optimized for developer experience than performance should only be used in test code.
Modules§
- testutil
- Utilities for writing tests that interact with input events.
Structs§
- Event
Handler - A handler for reading and processing events.
- Input
Options - Represents options for parsing input events.
- KeyBindings
- Represents a mapping between an input event and an action.
- KeyEvent
- Represents a key event.
- KeyModifiers
- Represents key modifiers (shift, control, alt, etc.).
- Mouse
Event - Represents a mouse event.
- State
- Input thread state.
- Thread
- A thread for reading and handling input events.
Enums§
- Event
- An event, either from an input device, system change or action event.
- KeyCode
- Represents a key.
- Mouse
Event Kind - A mouse event kind.
- RawEvent
- Represents an event.
- Standard
Event - Represents an event that is not tied directly to a user input device.
Constants§
- THREAD_
NAME - The name of the input thread.
Traits§
- Custom
Event - A custom event compatible enum.
- Custom
Keybinding - A custom keybindings compatible struct.
- Event
Reader Fn - Function that returns a event
Functions§
- map_
keybindings - Map a keybinding to a list of events.
- read_
event - Read the next input event from the terminal interface.