Expand description
Keyboard input handling for the TUI.
This module provides key mapping and action handling for the terminal user interface. It translates keyboard events into high-level actions and applies those actions to the application state.
§Key Bindings
| Key | Action |
|---|---|
q | Quit |
s | Scan |
r | Refresh |
c | Connect |
d | Disconnect |
y | Sync history |
↓ / j | Select next |
↑ / k | Select previous |
Tab / l | Next tab |
BackTab / h | Previous tab |
? | Toggle help |
Enums§
- Action
- User actions that can be triggered by keyboard input.
Functions§
- apply_
action - Apply an action to the application state.
- handle_
key - Map a key code to an action.
- handle_
mouse - Handle mouse events and return corresponding action.