Skip to main content

Module session

Module session 

Source
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§

ResizeWatch
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::leave or drop. Unlike Session it never switches to the alternate screen: a run draws beside it, through Stage::writer, on the same stdout.
Teardown
What a Stage run owes the terminal when it ends: which teardown pieces to send after the always-on resets.

Enums§

ResizeEvent
What a ResizeWatch noticed.