openSubprocessOutputWindow method

void openSubprocessOutputWindow({
  1. int height = 10,
})

opens a subprocess output window with the given height

Implementation

void openSubprocessOutputWindow({int height = 10}) {
  // only open a subprocess output window if a terminal is attached to stdout
  if (stdout.hasTerminal) {
    _windowLines.clear();
    _currentWindowSize = height;
    _drawWindow();
    Console.hideCursor();
  }
}