Expand description
Terminal keyboard bindings for the pane workspace (bd-21pbi.2).
This is the terminal host’s binding layer over the canonical, host-agnostic
command model in ftui_layout::pane_command (bd-21pbi.1). It provides:
key_to_pane_command: the default terminal keymap, mapping rawKeyEvents to canonicalPaneCommands. It binds only modifier-qualified keys (andTab/BackTab) so it coexists with application shortcuts and never steals unrelated plain keys.PaneKeyboardController: a reusable host helper that translates a key, resolves it against a livePaneTree, applies any structural operations, and tracks focus/maximize state — so pointer-free pane workflows are fully operable from a few lines of host glue.render_pane_focus_ring: a stable focus indicator (a distinct border on the active pane), generic over the render target so it works with both aFrameand a bareBuffer.pane_keyboard_hints: discoverable shortcut hints for a help panel.
The keymap is the terminal half of the cross-host parity guarantee: it emits
the same PaneCommand stream a conformant web binding (bd-21pbi.3) would for
equivalent intent, so both hosts reach identical pane state.
Structs§
- Pane
Focus Ring - A stable focus indicator: a distinct border drawn around the active pane.
- Pane
KeyHint - One discoverable keyboard hint for a help panel.
- Pane
Keyboard Controller - A reusable terminal pane keyboard host: translates keys to commands,
resolves them against a live tree, applies structural operations, and tracks
focus + maximize state. Hosts own the
PaneTree; this owns the focus state and a monotonic operation counter.
Enums§
- Pane
KeyOutcome - Outcome of feeding one key event to a
PaneKeyboardController.
Functions§
- key_
to_ pane_ command - Translate a raw terminal key event into a canonical
PaneCommand. - pane_
keyboard_ hints - The canonical, discoverable pane keyboard shortcut hints, in display order.
- render_
pane_ focus_ ring - Draw a focus ring around
recton any render target (FrameorBuffer).