closeSubprocessOutputWindow method

void closeSubprocessOutputWindow()

closes the subprocess output window

Implementation

void closeSubprocessOutputWindow() {
  if (_currentWindowSize != null) {
    _drawWindow(doClear: true); // erase window
    _windowLines.clear();
    Console.moveCursorUp(_lastDrawnWindowSize!);
    _currentWindowSize = null;
    _lastDrawnWindowSize = null;
    Console.showCursor();
  }
}