private void ClearAll() { var bottom = _offscreenBuffer.CursorBottom; for (var i = 0; i < _offscreenBuffer.LineCount; i++) { _consoleDriver.ClearLine(bottom - i); } _offscreenBuffer.Clear(); }
private void ClearAll() { var(_, top) = _consoleDriver.GetCursorPosition(); var bottom = top + _writtenErrorLines; for (int i = 0; i <= _writtenLines + _writtenErrorLines; i++) { _consoleDriver.ClearLine(bottom - i); } _writtenLines = 0; _writtenErrorLines = 0; }