@Override
		protected VtState handleNext(byte b, VtParser parser, VtHandler handler) {
			// For whatever reason, Windows includes the null terminator in titles
			if (0x20 <= b && b <= 0x7f || b == 0) {
				parser.putOscParamByte(b);
				return OSC_PARAM;
			}
			if (b == 0x07) {
				handleOsc(parser, handler);
				return CHAR;
			}
			if (b == 0x1b) {
				return OSC_ESC;
			}
			handler.handleCharExc((byte) 0x1b);
			return parser.doProcess(CHAR, parser.copyOscBuffer(b));
		}
We've encountered {@code OSC}, so now we're parsing parameters until we encounter {@code BEL}
or {@code ST}.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/vt/VtState.java