public static Direction forCsiFinal(byte b) {
			return switch (b) {
				case 'A' -> UP;
				case 'B' -> DOWN;
				case 'C' -> FORWARD;
				case 'D' -> BACK;
				default -> throw new AssertionError();
			};
		}
Derive the direction from the final byte of the CSI sequence

@param b the final byte
@return the direction
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/vt/VtHandler.java