private void ClearAll() { var bottom = _offscreenBuffer.CursorBottom; for (var i = 0; i < _offscreenBuffer.LineCount; i++) { _consoleDriver.ClearLine(bottom - i); } _offscreenBuffer.Clear(); }