needsFullClear method
Returns true if the previous frame had significantly more content than the current one.
Implementation
bool needsFullClear() {
if (!_previousGridPopulated) return false;
int currentContent = 0;
int previousContent = 0;
final int totalCells = terminal.height * terminal.width;
for (int y = 0; y < terminal.height; y++) {
final result =
_scanRowContent(y, currentContent, previousContent, totalCells);
if (result.$1) return true;
currentContent = result.$2;
previousContent = result.$3;
}
return previousContent > currentContent + _fullClearThreshold;
}