chiark / gitweb /
Start of the main TUI code.
authorSimon Tatham <anakin@pobox.com>
Wed, 27 Dec 2023 17:17:58 +0000 (17:17 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 27 Dec 2023 17:38:20 +0000 (17:38 +0000)
commit170cffb343337a94ca01c1e6debc43a6fe1a8595
tree254459aaafae04fb323143b7a165ca6e129a89a1
parent17992a9fcd089430aa37d534f8dc4a5886df85a2
Start of the main TUI code.

So far, I've made a struct that encapsulates the Ratatui state and
some subthread comms machinery, i.e. does the physical work. Then
there's a sub-struct to contain the logical UI state (so it can be
borrowed mutably without having to re-borrow the main struct), which
gets to draw things on the screen, update itself in response to
keypresses, and tell the physical side what to do after the
keypress (options currently limited to 'beep', 'exit', or 'just redraw
and go round the loop again').

Currently the UI itself is just "hello, world". I think menus are
next.
src/lib.rs
src/main.rs
src/tui.rs [new file with mode: 0644]