summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clients/tde/src/part/prototerminal/part.cpp13
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()) {