From 53071bb69f5d21b35b8a61c2b1dd18832ce781d4 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Wed, 23 Sep 2026 09:13:17 +0200 Subject: tui: aligned voucher detail, up/down between vouchers, list sorting The detail pads every column by display width, blanks zero amounts and shows row texts and a Summa line. Up/Down step to the previous/next voucher in the list order; 's' cycles the list sort (number or date, ascending or descending, saved in tui.conf). The list fetches all pages of voucher.list instead of stopping at 200. Co-Authored-By: Claude Opus 5.5 --- clients/tui.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clients/tui.h') diff --git a/clients/tui.h b/clients/tui.h index 5ede574..c4fe116 100644 --- a/clients/tui.h +++ b/clients/tui.h @@ -162,6 +162,9 @@ void tui_frame(const char *title); void tui_hints(const char *s); void tui_redraw(void); #define TUI_PAGER_SAVE 0x1 /* 's' returns 2 (the save action) */ +/* Up/Down do not scroll (the key hook owns them, e.g. previous/next + record); PgUp/PgDn/Home/End still scroll and the hint says so. */ +#define TUI_PAGER_NO_ARROWS 0x2 int tui_pager(const char *title, const char *text, const char *action_hint); int tui_pager_hook(const char *title, const char *text, const char *extra_hint, unsigned flags, -- cgit v1.3