default void handleOsc(ByteBuffer oscParam) throws Exception {
		try {
			String paramStr = strBuf(oscParam);
			Matcher matcher;

			matcher = PAT_OSC_WINDOW_TITLE.matcher(paramStr);
			if (matcher.matches()) {
				handleWindowTitle(truncateAtNull(matcher.group("title")));
				return;
			}

			matcher = PAT_OSC_COLOR_QUERY.matcher(paramStr);
			if (matcher.matches()) {
				Msg.trace(this, "TODO: OSC Color Query");
				return;
			}
			throw new UnknownOscException();
		}
		catch (UnknownOscException e) {
			Msg.error(this, "Unknown OSC sequence: param:'" + strBuf(oscParam) + "'");
		}
	}
Handle an OSC sequence

@param oscParam the parameter buffer
@throws Exception if anything goes wrong
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/vt/VtHandler.java