tui: ASCII onion chrome, themed panes, and real keyboard navigation
Some checks are pending
ci / test (push) Waiting to run
Some checks are pending
ci / test (push) Waiting to run
- Hand-written wordmark banner (<=80 cols, auto-collapses to a compact mark below banner width) plus onion glyph and themed screen headings - Color-palette consts, stateful pane titles, highlighted selection row (accent + bg), context-sensitive footer that always keeps '? help' - Pane focus model (roster/chat/composer) with Tab/Shift-Tab, 1/2/3, j/k + arrows, g/G, and a '?' help overlay; Esc closes any overlay - New tests/tui_chrome.rs: banner widths, help overlay bindings, real footer helper at 80 and 120 cols, 80x24 draw smoke test - README keybinding table updated to match Locked helper strings (fingerprint_mismatch_banner, rotate_screen_text, wipe_screen_text, parse_slash) unchanged; UI-only (src/tui.rs).
This commit is contained in:
parent
5c5948c61c
commit
82634db142
3 changed files with 605 additions and 65 deletions
12
README.md
12
README.md
|
|
@ -113,15 +113,21 @@ A friend is an ed25519 pubkey (`UNIQUE(pubkey)`). The `.onion` on that row is on
|
|||
|
||||
## Keys (TUI)
|
||||
|
||||
Focus starts on the composer so typing works immediately. `Tab` cycles panes; `j`/`k` and arrows only move the focused pane (roster or chat). `1`/`2`/`3` switch focus when you are not typing in the composer. `?` opens help from every screen except paste (so a payload can contain `?`).
|
||||
|
||||
| Key | Action |
|
||||
|---|---|
|
||||
| `Tab` / `Shift-Tab` | Cycle focus: roster → chat → composer |
|
||||
| `1` / `2` / `3` | Focus roster / chat / composer (when not typing) |
|
||||
| `j` `k` / `↑` `↓` | Move or scroll the focused pane |
|
||||
| `g` / `G` | Jump to top / bottom of the focused pane |
|
||||
| `?` | Keybinding help (`Esc` closes) |
|
||||
| `F2` | Share: terminal QR + payload |
|
||||
| `F3` | Paste a friend’s payload |
|
||||
| `F4` | Rotate **onion** (locator only) |
|
||||
| `↑` / `↓` | Roster |
|
||||
| Enter | Send (composer) |
|
||||
| Enter | Run `/wipe` or `/wipe-all` from the composer |
|
||||
| `Esc` | Close overlay / back to Main / clear composer |
|
||||
| `Ctrl-Q` | Quit |
|
||||
| Esc | Cancel overlay / clear composer |
|
||||
|
||||
## F2 QR
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue