Module input

Module input 

Source
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

KeyAction
qQuit
sScan
rRefresh
cConnect
dDisconnect
ySync history
/ jSelect next
/ kSelect previous
Tab / lNext tab
BackTab / hPrevious 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.