clear method
void
clear()
Clears the viewport and scrollback buffer. Then fill with empty lines.
Implementation
void clear() {
lines.clear();
for (int i = 0; i < viewHeight; i++) {
lines.push(_newEmptyLine());
}
}