scrollDown method
Implementation
void scrollDown(int count) {
if (_usesFullHorizontalMargins) {
_scrollDownFullWidth(count);
return;
}
final width = _marginRight - _marginLeft + 1;
for (var i = absoluteMarginBottom; i >= absoluteMarginTop; i--) {
if (i >= absoluteMarginTop + count) {
lines[i].copyFrom(
lines[i - count],
_marginLeft,
_marginLeft,
width,
);
} else {
lines[i].eraseRange(_marginLeft, _marginRight + 1, terminal.cursor);
}
}
}