protected void processWindowTitle(byte c) {
		switch (c) {
			default:
				titleBuf.put(c);
				break;
			case 0x07: // bell, even though MSDN says longer form preferred
				execSetWindowTitle();
				mode = Mode.CHARS;
				break;
			case 0x1b:
				mode = Mode.WINDOW_TITLE_ESC;
				break;
		}
	}
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