default AnsiColor decodeExtendedColor(OfInt bits) {
		if (!bits.hasNext()) {
			Msg.error(this, "Missing color type in extended color code");
			return null;
		}
		int type = bits.nextInt();
		if (type == 5) {
			if (!bits.hasNext()) {
				return null;
			}
			return decode8BitColor(bits.nextInt());
		}
		if (type == 2) {
			if (!bits.hasNext()) {
				return null;
			}
			int r = bits.nextInt();
			if (!bits.hasNext()) {
				return null;
			}
			int g = bits.nextInt();
			if (!bits.hasNext()) {
				return null;
			}
			int b = bits.nextInt();
			return new Ansi24BitColor(r, g, b);
		}
		Msg.error(this, "Unrecognized extended color type: " + type);
		return null;
	}
Decode an extended ANSI color specification

@param bits the parameters
@return the color specification
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/vt/VtHandler.java