resetViewport method

void resetViewport()

Implementation

void resetViewport() {
  final viewportStart = scrollBack;
  final viewportEnd = viewportStart + viewHeight;
  for (var row = viewportStart; row < viewportEnd; row++) {
    final line = lines[row];
    line.isWrapped = false;
    for (var column = 0; column < viewWidth; column++) {
      line.resetCell(column);
    }
  }
  _cursorX = 0;
  _cursorY = 0;
  resetVerticalMargins();
  resetHorizontalMargins();
}