chiark / gitweb /
Introduce the concept of an 'overlay activity'.
authorSimon Tatham <anakin@pobox.com>
Mon, 1 Jan 2024 07:21:08 +0000 (07:21 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 1 Jan 2024 08:25:17 +0000 (08:25 +0000)
commitcdcf457efac0d970122558eefc22f0617a484938
tree2ae25a9f9c5e7062364b2e50b39d6c90836a83c9
parent749d9e1f77bce3e9dc67915fec65b3f106997403
Introduce the concept of an 'overlay activity'.

This will be used for bottom-line editor prompts. Some of those are
triggered within the context of an existing activity (for example, if
you're reading a file and press the not-yet-implemented search key).
Others can be imposed from outside, e.g. pressing Alt+E while reading
a file. So there's a slightly fiddly mechanism to make the latter
work, and not treat it as two totally independent ESC and E
keystrokes (which would leave you looking at the Utilities Menu while
entering the name of a user to examine, instead of at the screen you
saw the username on).

The overlay activity is drawn on top of the topmost non-overlay
activity on the stack, at the bottom of the screen.
src/activity_stack.rs
src/tui.rs