alt_screen() ->
state
Enter the alternate screen with KKBP and bracketed paste enabled
Switches to the alt screen and blanks it, enables KKBP and bracketed
paste, and hides the cursor. state:done() undoes all of it.
The terminal saves the cursor on ESC[?1049h and restores it on
ESC[?1049l. Entry reads nothing from stdin, so a raw lev.fd_reader
started straight after sees every keystroke.