boolean () { // There can by anything from 0x40–0x5F https://en.wikipedia.org/wiki/ANSI_escape_code#Escape_sequences // but we are ignoring most of it for now switch (myBuffer.charAt(myEndOffset)) { case '[' -> { myEndOffset++; processCSISequence(); return true; } case '=' -> { //DECKPAM myElementType = CONTROL; myEndOffset++; return true; } default -> { return false; } } }