clearScrollback method
void
clearScrollback()
Remove all lines above the top of the viewport.
Implementation
void clearScrollback() {
if (height <= viewHeight) {
return;
}
_invalidateCurrentLine();
lines.trimStart(scrollBack);
}