Skip to main content

enter_recall_screen

Function enter_recall_screen 

Source
fn enter_recall_screen(w: &mut impl Write) -> Result<bool>
Expand description

Switch the terminal into recall mode: alternate screen, hidden cursor, and (off Windows) the kitty keyboard protocol for instant Escape. Returns whether keyboard enhancement was requested, for the matching pop.

The alternate screen comes first: the kitty protocol keeps one flag stack per screen, so the push and the pop in leave_recall_screen must both happen on the alternate screen or the shell inherits the flags.