function resetWindow() {
  if (!isTTY) return;

  // If status has been persisted we add a line
  // Otherwise final states would remain in the terminal for rebuilds
  if (statusPersisted) {
    lineCount++;
    statusPersisted = false;
  }

  clearStream(stderr, errorLineCount);
  errorLineCount = 0;

  clearStream(stdout, lineCount);
  lineCount = 0;

  for (let m of persistedMessages) {
    writeOut(m);
  }
}
// Reset the window's state
Reset the window's state
Reset the window ' s state
function resetWindow() {
  if (!isTTY) return;
  if (statusPersisted) {
    lineCount++;
    statusPersisted = false;
  }
  clearStream(stderr, errorLineCount);
  errorLineCount = 0;
  clearStream(stdout, lineCount);
  lineCount = 0;
  for (let m of persistedMessages) {
    writeOut(m);
  }
}
function resetWindow ( ) { if ( ! isTTY ) return ; if ( statusPersisted ) { lineCount ++ ; statusPersisted = false ; } clearStream ( stderr , errorLineCount ) ; errorLineCount = 0 ; clearStream ( stdout , lineCount ) ; lineCount = 0 ; for ( let m of persistedMessages ) { writeOut ( m ) ; } }
Reset the window's state
Reset the window ' s state
// If status has been persisted we add a line // Otherwise final states would remain in the terminal for rebuilds