Skip to content

Commit

Permalink
Add 'X' ANSI escape - erase n characters
Browse files Browse the repository at this point in the history
Copied from Fingerterm source code
  • Loading branch information
direc85 committed Feb 5, 2022
1 parent dafa91f commit bdae53e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/terminal.cpp
Expand Up @@ -760,6 +760,15 @@ void Terminal::ansiSequence(const QString& seq)
scrollBack(params.at(0));
break;

case 'X': // erase n characters
if (params.count() == 1) {
for (int i = 0; i < params[0]; i++)
insertAtCursor(' ', true, true);
setCursorPos(QPoint(cursorPos().x() - params[0], cursorPos().y()));
} else {
unhandled = true;
}
break;
case 'c': // vt100 identification
if(params.count()==0)
params.append(0);
Expand Down

0 comments on commit bdae53e

Please sign in to comment.