diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-01-13 01:06:31 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-01-13 01:06:31 -0600 |
commit | 06f302400e33d8f1b8175a08ccd6630b7ae4ee40 (patch) | |
tree | 5ab2eb9c37f8a06a2c55039f32ab9c914294b382 /clients/tde | |
parent | 1825d329216fbcb56871a8887aea8bfd9caf3132 (diff) | |
download | ulab-06f302400e33d8f1b8175a08ccd6630b7ae4ee40.tar.gz ulab-06f302400e33d8f1b8175a08ccd6630b7ae4ee40.zip |
Fix prototerminal reception of multiple lines of text
Diffstat (limited to 'clients/tde')
-rw-r--r-- | clients/tde/src/part/prototerminal/part.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/clients/tde/src/part/prototerminal/part.cpp b/clients/tde/src/part/prototerminal/part.cpp index 434c675..2913a43 100644 --- a/clients/tde/src/part/prototerminal/part.cpp +++ b/clients/tde/src/part/prototerminal/part.cpp @@ -212,13 +212,16 @@ void ProtoTerminalPart::mainEventLoop() { // Get command status TQString input; - ds >> input; - m_socket->clearFrameTail(); + while (!ds.atEnd()) { + ds >> input; - if (input != "") { - m_base->textOutput->append(">>>" + input); - EXEC_NEXT_STATE_IMMEDIATELY + if (input != "") { + input.replace("\r", "\n"); + m_base->textOutput->append(">>>" + input); + } } + m_socket->clearFrameTail(); + EXEC_NEXT_STATE_IMMEDIATELY } else { if (!m_updateTimeoutTimer->isActive()) { |