mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Debugger: Support ANSI colours in the Interpreter window.
This patch adds a parser for ANSI terminal escape sequences, enabling e.g. interaction with colorized GDB prompts and scripts.
This commit is contained in:
parent
47f76c78d6
commit
f9e234738d
3 changed files with 356 additions and 9 deletions
|
@ -69,14 +69,8 @@ public abstract class AbstractDebuggerWrappedConsoleConnection<T extends TargetO
|
|||
if (os == null) {
|
||||
return;
|
||||
}
|
||||
/**
|
||||
* NB: yes, the extra space is lame... The InterpreterPanel's repositionScrollPane
|
||||
* method subtracts 1 from the text length to compute the new position causing it to
|
||||
* scroll to the last character printed. We want it to scroll to the next line, so...
|
||||
*/
|
||||
try {
|
||||
os.write(out);
|
||||
os.write(' ');
|
||||
}
|
||||
catch (IOException e) {
|
||||
Msg.error(this, "Cannot write to interpreter window: ", e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue