public void Render(Action <OffscreenBuffer> template) { _consoleDriver.CursorVisible = false; ClearAll(); template(_offscreenBuffer); if (_errorMessage != null) { _offscreenBuffer.WriteErrorMessage(_errorMessage); _errorMessage = null; } _offscreenBuffer.RenderToConsole(); _consoleDriver.CursorVisible = _cursorVisible; }