Skip to content

Commit

Permalink
GP-4392: Parse l and h ANSI CSI commands for gdb/ConPty.
Browse files Browse the repository at this point in the history
  • Loading branch information
nsadeveloper789 committed Mar 5, 2024
1 parent 711c4de commit 7994ed3
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,14 @@ protected void processCsiParamOrCommand(byte c) {
execSetGraphicsRendition();
mode = Mode.CHARS;
break;
case 'h':
execPrivateSequence(true);
mode = Mode.CHARS;
break;
case 'l':
execPrivateSequence(false);
mode = Mode.CHARS;
break;
}
}

Expand Down Expand Up @@ -473,4 +481,9 @@ protected void execSetWindowTitle() {
// TODO: Maybe a callback. Otherwise, don't care
titleBuf.clear();
}

protected void execPrivateSequence(boolean enable) {
// These don't matter for input buffering.
escBuf.clear();
}
}

0 comments on commit 7994ed3

Please sign in to comment.