MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / clear

Method clear

app/src/Console/Handler.cpp:427–441  ·  view source on GitHub ↗

* @brief Clears the console text and per-device buffer for the current device. */

Source from the content-addressed store, hash-verified

425 * @brief Clears the console text and per-device buffer for the current device.
426 */
427void Console::Handler::clear()
428{
429 m_textBuffer.clear();
430 m_isStartingLine = true;
431 m_lastCharWasCR = false;
432
433 auto it = m_deviceState.find(m_currentDeviceId);
434 if (it != m_deviceState.end()) {
435 it->second.buffer.clear();
436 it->second.isStartingLine = true;
437 it->second.lastCharWasCR = false;
438 }
439
440 Q_EMIT cleared();
441}
442
443/**
444 * @brief Navigates to an older entry in the command history.

Callers 9

closeResourcesMethod · 0.45
HandlerMethod · 0.45
setCurrentDeviceIdMethod · 0.45
onDevicesChangedMethod · 0.45
closeResourcesMethod · 0.45
createCsvFileMethod · 0.45
closeFileMethod · 0.45
initializeTimestampsMethod · 0.45
buildReplayLayoutMethod · 0.45

Calls 1

findMethod · 0.80

Tested by

no test coverage detected