Exemplo n.º 1
0
        public bool ReceiveUpdates()
        {
            string newOutput = debuggerService.GetNewConsoleOutput();

            if (newOutput.Length > 0)
            {
                // Append new text
                consoleOut.Buffer.Text += newOutput;

                // Scroll the window to the end
                TextMark endMark = consoleOut.Buffer.CreateMark(null, consoleOut.Buffer.EndIter, false);
                consoleOut.ScrollToMark(endMark, 0, false, 0, 0);
            }

            return(true);
        }