TermBuf::Input::Prefix
Inherits Enum < Comparable < Value < Object
What an escape sequence begins with, which is the only part of it whose meaning is fixed by the standards rather than by whoever wrote the terminal.
Everything after the introducer is private to the sequence, so a pattern says which introducer it is interested in and matches the rest by hand.
Constants
ESC [, a control sequence.
ESC O, the application keypad form.
ESC P, a device control string.
ESC _, an application programming command, which is where the kitty
graphics protocol lives.
ESC ], an operating system command.
ESC ^, a privacy message.
ESC X, a start of string.
ESC and one more byte, which is everything else.
Constructors
Class methods
Splits a written prefix such as "\e[?" into the introducer it names
and whatever it wants to see straight after it.
This is what lets a driver's expect-response API keep taking a string: an application that knows what a mode report looks like should not have to know how this shard files it.
Instance methods
Whether the sequence runs to a string terminator rather than to a byte
in the final range, which is what decides whether Sequence#final
means anything.