From 970b4b5b6864ae4dfdff503cf3638f973f34bb6b Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Wed, 2 Feb 2011 18:04:23 +0100 Subject: [PATCH] fixed escaping and disabled diplay of every character --- src/Pty.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Pty.cpp b/src/Pty.cpp index 6b0abe750..da5aa4e6d 100644 --- a/src/Pty.cpp +++ b/src/Pty.cpp @@ -57,7 +57,7 @@ void Pty::setWindowSize(int lines, int cols) if (pty()->masterFd() >= 0) pty()->setWinSize(lines, cols); #else - write(QByteArray("\e[") + QString("%1;%2t").arg(lines).arg(cols).toLatin1()); + pty()->write(QByteArray("\x1B[") + QString("%1;%2t\r\n").arg(lines).arg(cols).toLatin1()); #endif } QSize Pty::windowSize() const @@ -304,9 +304,6 @@ void Pty::sendData(const char* data, int length) kWarning() << "Pty::doSendJobs - Could not send input data to terminal process."; return; } -#ifdef Q_WS_WIN - emit receivedData(data,length); -#endif } void Pty::dataReceived()