clearAll method

void clearAll()

Clears both the grid and the terminal, forcing a full redraw on next flush.

Implementation

void clearAll() {
  terminal.clear();

  for (int y = 0; y < terminal.height; y++) {
    for (int x = 0; x < terminal.width; x++) {
      _grid[y][x] = Cell.empty;
      _previousGrid[y][x] = const Cell('');
    }
  }
}