diff options
author | Ken Moore <ken@ixsystems.com> | 2016-12-16 09:46:38 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-12-16 09:46:38 -0500 |
commit | 42210dc6fa063a33b637dbe12574494f4f8e6a10 (patch) | |
tree | 548c2ddd027e0c8110719b3248b8e81ef93935df /src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp | |
parent | Switch the "clicked" signal for the "Activated" signal within the input devic... (diff) | |
download | lumina-42210dc6fa063a33b637dbe12574494f4f8e6a10.tar.gz lumina-42210dc6fa063a33b637dbe12574494f4f8e6a10.tar.bz2 lumina-42210dc6fa063a33b637dbe12574494f4f8e6a10.zip |
A bit more cleanup for the terminal.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp b/src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp index a4622817..906252cf 100644 --- a/src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp +++ b/src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp @@ -164,9 +164,10 @@ void TerminalWidget::applyANSI(QByteArray code){ else{ qDebug() << "Unhandled ANSI Code:" << code; } - /*}else if(code.startsWith("[@") && code.length()==3){ - //Strange VT220? code - just print the character after the @ - InsertText( QString(code[2]) );*/ + + }else if(code.startsWith("[") && code.contains("@")){ + code = code.remove(0, code.indexOf("@")+1); + InsertText(code); //insert character (cursor position already accounted for with other systems) }else if(code.startsWith("[")){ // VT100 ESCAPE CODES //CURSOR MOVEMENT @@ -432,7 +433,7 @@ void TerminalWidget::sendKeyPress(int key){ //Check for special keys switch(key){ case Qt::Key_Delete: - ba.append("\x7F"); + ba.append("\e[3~"); break; case Qt::Key_Backspace: ba.append("\x08"); |