clear method

void clear()

Forgets everything, keeping the entry — the console's own clear button.

Implementation

void clear() {
  _lines.clear();
  _dropped = 0;
}