mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-22 10:02:49 +08:00
GP-4392: Parse l and h ANSI CSI commands for gdb/ConPty.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user