restore method

void restore(
  1. Terminal terminal
)

Restores this state to the given terminal.

Implementation

void restore(unified.Terminal terminal) {
  // Restore in reverse order of typical setup
  if (bracketedPasteEnabled) {
    terminal.enableBracketedPaste();
  }
  if (mouseEnabled) {
    terminal.enableMouse();
  }
  if (altScreenEnabled) {
    terminal.enterAltScreen();
  }
  if (rawModeEnabled) {
    terminal.enableRawMode();
  }
  // Note: cursor visibility is handled by the renderer
}