clear method

void clear()

Clears all text and resets cursor to start.

Implementation

void clear() {
  _buffer.clear();
  _cursorPosition = 0;
}