Merge remote-tracking branch 'origin/GP-4392_Dan_gdbConPtyAnsiParsing'

into patch (Closes #6107)
This commit is contained in:
Ryan Kurtz 2024-03-07 09:24:17 -05:00
commit 50df70ba0f

View File

@ -270,6 +270,14 @@ public class AnsiBufferedInputStream extends InputStream {
execSetGraphicsRendition();
mode = Mode.CHARS;
break;
case 'h':
execPrivateSequence(true);
mode = Mode.CHARS;
break;
case 'l':
execPrivateSequence(false);
mode = Mode.CHARS;
break;
}
}
@ -473,4 +481,9 @@ public class AnsiBufferedInputStream extends InputStream {
// TODO: Maybe a callback. Otherwise, don't care
titleBuf.clear();
}
protected void execPrivateSequence(boolean enable) {
// These don't matter for input buffering.
escBuf.clear();
}
}