aboutsummaryrefslogtreecommitdiff
path: root/libui/widget
AgeCommit message (Collapse)Author
2022-05-17list: reset, somewhat decent resize implementation and fix reframeJulian Hurst
list::reframe had buggy behaviour (especially after previous commit). list::reset allows easily resetting the list (cursor = 0, reset frame). list::resize allows resizing the list after a sigwinch more easily. It's a bit of a bitch to get a pretty, non-brutal (without cursor/frame resetting to avoid "jumping" effect) list resize, this algo acheives it somewhat decently and keeps the selected item in a somewhat predictable position.
2022-05-17Remove useless (or at least it should be) frame update in printJulian Hurst
2022-05-17Move ttyui to widgetJulian Hurst
2022-05-17Create consts for ansi colour codes in listJulian Hurst
2022-05-17Add list::setitems, sorting and decouple handlers from main.haJulian Hurst
2022-05-16Add page up and page downJulian Hurst
2022-05-16Add layout and a common widget typeJulian Hurst