aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-12-08 14:29:28 -0500
committerKen Moore <ken@ixsystems.com>2016-12-08 14:29:28 -0500
commitadcdd6418b1b8838e56c50077168074938a51459 (patch)
tree6eacc56ee0548dbafeef5a106c1fd5b9914a4723 /src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp
parentApply a cursor fix for backspace *within* the middle of a line. (diff)
downloadlumina-adcdd6418b1b8838e56c50077168074938a51459.tar.gz
lumina-adcdd6418b1b8838e56c50077168074938a51459.tar.bz2
lumina-adcdd6418b1b8838e56c50077168074938a51459.zip
Clean up a bit more of the Terminal interactions.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp b/src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp
index 6893915b..398d80c0 100644
--- a/src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp
+++ b/src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp
@@ -120,10 +120,6 @@ void TerminalWidget::applyData(QByteArray data){
i+=end; //move the final loop along - already handled these bytes
}else if( data.at(i) != '\r' ){
- //Special Check: if inserting text within a line, clear the rest of this line first
- /*if(i==0 && this->textCursor().position() < this->document()->characterCount()-1){
- applyANSI("[K");
- }*/
chars.append(data.at(i));
//Plaintext character - just add it here
//qDebug() << "Insert Text:" << data.at(i) << CFMT.foreground().color() << CFMT.background().color();
@@ -136,7 +132,7 @@ void TerminalWidget::applyData(QByteArray data){
void TerminalWidget::applyANSI(QByteArray code){
//Note: the first byte is often the "[" character
- qDebug() << "Handle ANSI:" << code;
+ //qDebug() << "Handle ANSI:" << code;
if(code.length()==1){
//KEYPAD MODES
if(code.at(0)=='='){ altkeypad = true; }
@@ -419,7 +415,7 @@ void TerminalWidget::sendKeyPress(int key){
ba.append("\x1b[F");
break;
}
- qDebug() << "Forward Input:" << ba;
+ //qDebug() << "Forward Input:" << ba;
if(!ba.isEmpty()){ PROC->writeTTY(ba); }
}
@@ -467,7 +463,7 @@ void TerminalWidget::keyPressEvent(QKeyEvent *ev){
sendKeyPress(Qt::Key_End); //just in case the cursor is not at the end (TTY will split lines and such - ugly)
}
QByteArray ba; ba.append(ev->text()); //avoid any byte conversions
- qDebug() << "Forward Input:" << ba;
+ //qDebug() << "Forward Input:" << ba;
PROC->writeTTY(ba);
}
bgstack15