protected void processEsc(byte c) {
		switch (c) {
			case '[':
				mode = Mode.CSI;
				break;
			case ']':
				mode = Mode.OSC;
				break;
			default:
				throw new AssertionError("Saw 'ESC " + c + "' at " + countIn);
		}
	}
There's not really a good way to know if any trailing space was intentional. For GDB/MI, that
doesn't really matter.
Ghidra/Framework/Pty/src/main/java/ghidra/pty/windows/AnsiBufferedInputStream.java