| 321 | } |
| 322 | |
| 323 | void 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 | |
| 345 | void DebuggerConsoleView::receivedStderr(const QString& line) |
| 346 | { |