From 4329ffb98d7eeffe2b3874d2b31cb0857d33d944 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Sat, 19 Sep 2026 21:58:58 +0200 Subject: tui: shared widget layer (fields, prompts, lists, forms, pager) + tests --- AGENTS.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index b82e119..0d04f7f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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 -- cgit v1.3