예제 #1
0
        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;
        }