restore method

  1. @override
Future<void> restore()
override

Lightweight cleanup: restore terminal modes (raw off, cursor on, mouse off, alternate screen off) without tearing down stdin subscriptions or event streams. Safe to call between successive runTerminal invocations that share this terminal.

Implementation

@override
Future<void> restore() async {
  _rawMode = false;
  _altScreen = false;
  _mouseEnabled = false;
  _cursorHidden = false;
}