diff options
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -66,8 +66,11 @@ Read `docs/STATE.md` first for status, locked decisions, pending decisions and the prioritized backlog. Then read `docs/TUI-GUIDELINES.md` and follow it. Summary: one shared line editor, universal keys (Ctrl+N new, F5 refresh, Esc/q back, digits jump, `g` goto), forms behave the same everywhere, hints always visible, errors shown as -`CODE: message`. Prefer reusing the shared helpers (`select_list`, `menu`, -`field_edit`, `pad_field`, `message`, `show_error`) over new local loops. +`CODE: message`. Screens call only the widget layer (`clients/tui.[ch]`: +`tui_menu`, `tui_select_list`, `tui_prompt_into`, `tui_edit_field`, +`tui_pad_field`, `tui_message`, `show_error`) — never ncurses directly and +never a local one-off loop. If no widget fits, extend the widget layer +first (spec in `TUI-GUIDELINES.md` + tests in `tests/test_tui.c`). ## Verifying |
