protected void processOsc(byte c) {
		switch (c) {
			default:
				escBuf.put(c);
				break;
			case ';':
				if (Set.of("0", "2").contains(readAndClearEscBuf())) {
					mode = Mode.WINDOW_TITLE;
					escBuf.clear();
					break;
				}
				throw new AssertionError();
		}
	}
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