aboutsummaryrefslogtreecommitdiff
path: root/AGENTS.md
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-19 21:58:58 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-19 21:58:58 +0200
commit4329ffb98d7eeffe2b3874d2b31cb0857d33d944 (patch)
tree16e777dc90fa334ce3f436a3b5d3a7a9efdbd8b9 /AGENTS.md
parent34fc2b1dce788fbb093e70c2124630167e7980ef (diff)
downloadbokf-4329ffb98d7eeffe2b3874d2b31cb0857d33d944.tar.gz
bokf-4329ffb98d7eeffe2b3874d2b31cb0857d33d944.zip
tui: shared widget layer (fields, prompts, lists, forms, pager) + testsv0.1.36
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md7
1 files changed, 5 insertions, 2 deletions
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