clear method

void clear()

Clears the viewport and scrollback, then moves renderers to the bottom.

Implementation

void clear() {
  if (_isDisposed) return;
  final activePrompt = _activeSemanticPromptOffset();
  _buffer.clear();
  _restoreActiveSemanticPrompt(activePrompt);
  if (_modes._synchronizedUpdateMode) return;
  notifyListeners();
}