end method

void end()

Ends the terminal session and restores state.

Implementation

void end() {
  if (!_active) return;
  _termState?.restore();
  if (hideCursor) TerminalControl.showCursor();
  _active = false;
}