aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-12-16 13:25:35 -0500
committerKen Moore <ken@ixsystems.com>2016-12-16 13:25:35 -0500
commit1608c2880af681b9f4df9681c4482324a62c8e4b (patch)
treedc3a57a3da021cbede4dcf71f3fe09651e4096bb /src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp
parentIf xinput is not available, do not show the input device configuration page. (diff)
parentHide the small menu popup during the lumina-fm init routine. (diff)
downloadlumina-1608c2880af681b9f4df9681c4482324a62c8e4b.tar.gz
lumina-1608c2880af681b9f4df9681c4482324a62c8e4b.tar.bz2
lumina-1608c2880af681b9f4df9681c4482324a62c8e4b.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp9
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");
bgstack15