diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-19 21:58:58 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-19 21:58:58 +0200 |
| commit | 4329ffb98d7eeffe2b3874d2b31cb0857d33d944 (patch) | |
| tree | 16e777dc90fa334ce3f436a3b5d3a7a9efdbd8b9 /AGENTS.md | |
| parent | 34fc2b1dce788fbb093e70c2124630167e7980ef (diff) | |
| download | bokf-0.1.36.tar.gz bokf-0.1.36.zip | |
tui: shared widget layer (fields, prompts, lists, forms, pager) + testsv0.1.36
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 |
