@Override
		protected VtState handleNext(byte b, VtParser parser, VtHandler handler) {
			switch (b) {
				case '7':
					handler.handleSaveCursorPos();
					return CHAR;
				case '8':
					handler.handleRestoreCursorPos();
					return CHAR;
				case '(':
					parser.csG = G.G0;
					return CHARSET;
				case ')':
					parser.csG = G.G1;
					return CHARSET;
				case '*':
					parser.csG = G.G2;
					return CHARSET;
				case '+':
					parser.csG = G.G3;
					return CHARSET;
				case '[':
					return CSI_PARAM;
				case ']':
					return OSC_PARAM;
				case '=':
					handler.handleKeypadMode(KeyMode.APPLICATION);
					return CHAR;
				case '>':
					handler.handleKeypadMode(KeyMode.NORMAL);
					return CHAR;
				case 'D':
					handler.handleScrollViewportDown(1, true);
					return CHAR;
				case 'M':
					handler.handleScrollViewportUp(1);
					return CHAR;
				case 'c':
					handler.handleFullReset();
					return CHAR;
			}
			handler.handleCharExc((byte) 0x1b);
			handler.handleCharExc(b);
			return CHAR;
		}
We have just encountered an {@code ESC}.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/vt/VtState.java