Expand description
The alternate-screen session guard: enter on construction, leave on drop, including unwinds. A session owns its writer; drawing through katui happens beside it, on the same stdout.
Structs§
- Resize
Watch - Turns the per-frame terminal size into resize and settle events.
- Session
- An alternate-screen session. Drop leaves the screen, whatever ended it: normal return, error, panic.
- Stage
- The main-screen stage: hides the cursor on enter and restores the
terminal on
Stage::leaveor drop. UnlikeSessionit never switches to the alternate screen: a run draws beside it, throughStage::writer, on the same stdout. - Teardown
- What a
Stagerun owes the terminal when it ends: which teardown pieces to send after the always-on resets.
Enums§
- Resize
Event - What a
ResizeWatchnoticed.