Restores the terminal. Safe to call more than once.
@override Future<void> close() async { closed = true; await _input.close(); }