leave method

  1. @override
void leave()
override

Leaves full-screen mode, restoring the prior screen and input mode.

Implementation

@override
void leave() {
  // Reset attributes, show cursor, leave the alternate screen.
  writeAnsi('\x1b[0m\x1b[?25h\x1b[?1049l');
  onLeave();
  _front = null;
}