MCPcopy Create free account
hub / github.com/KDE/kdevelop / receivedStdout

Method receivedStdout

plugins/debuggercommon/widgets/debuggerconsoleview.cpp:323–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323void DebuggerConsoleView::receivedStdout(const QString& line, bool internal)
324{
325 QString colored = toHtmlEscaped(line);
326 if (colored.startsWith(QLatin1String("(gdb)"))) {
327 if (!m_alterPrompt.isEmpty()) {
328 colored.replace(0, 5, m_alterPrompt);
329 }
330 colorify(colored, m_stdColor);
331 }
332
333 m_allOutput.append(colored);
334 trimList(m_allOutput, m_maxLines);
335
336 if (!internal) {
337 m_userOutput.append(colored);
338 trimList(m_userOutput, m_maxLines);
339 }
340
341 if (!internal || m_showInternalCommands)
342 appendLine(colored);
343}
344
345void DebuggerConsoleView::receivedStderr(const QString& line)
346{

Callers

nothing calls this directly

Calls 4

colorifyFunction · 0.85
isEmptyMethod · 0.45
replaceMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected