Buffer constructor
Implementation
Buffer({
required Terminal terminal,
required this.isAltBuffer,
}) : _terminal = terminal {
resetVerticalMargins();
lines = CircularList(
_terminal.maxLines,
);
for (int i = 0; i < _terminal.viewHeight; i++) {
lines.push(_newEmptyLine());
}
}