@Override
		protected VtState handleNext(byte b, VtParser parser, VtHandler handler) {
			if (0x30 <= b && b <= 0x3f) {
				parser.putCsiParamByte(b);
				return CSI_PARAM;
			}
			if (0x20 <= b && b <= 0x2f) {
				parser.putCsiInterByte(b);
				return CSI_INTER;
			}
			if (0x40 <= b && b <= 0x7e) {
				handleCsi(b, parser, handler);
				return CHAR;
			}
			handler.handleCharExc((byte) 0x1b);
			return parser.doProcess(CHAR, parser.copyCsiBuffer(b));
		}
We've encountered {@code CSI}, so now we're parsing parameters, intermediates, or the final
character.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/vt/VtState.java