Skip to content

Commit

Permalink
Implement 'Z' ANSI escape - back tab
Browse files Browse the repository at this point in the history
  • Loading branch information
direc85 committed Feb 5, 2022
1 parent bdae53e commit eb3b6d9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/terminal.cpp
Expand Up @@ -769,6 +769,18 @@ void Terminal::ansiSequence(const QString& seq)
unhandled = true;
}
break;

case 'Z': // back tab
if(cursorPos().y() > 0) {
for(int i=iTabStops[cursorPos().y()-1].count()-1; i>0; i--) {
if(iTabStops[cursorPos().y()-1][i] < cursorPos().x()) {
setCursorPos(QPoint( iTabStops[cursorPos().y()-1][i], cursorPos().y() ));
break;
}
}
}
break;

case 'c': // vt100 identification
if(params.count()==0)
params.append(0);
Expand Down

0 comments on commit eb3b6d9

Please sign in to comment.