suspend<T> method
Hands the terminal to another program while run runs and takes it
back after (TwkApp.suspend): the region stays on the screen with the
cursor on the line below it, raw mode off and input paused, the frames
waiting, until run completes; then the region is drawn again below
what the other program printed. Returns what run returns, or throws
what it throws, once the terminal is back. Once the session has ended,
run just runs.
Implementation
Future<T> suspend<T>(Future<T> Function() run) =>
_ended ? run() : _binding.twkApp.suspend(run);