I appreciate it; it is true that your input answers exactly my specifications.
However I wasn't sure about the VT100 sequences, and I appreciate the other inputs.
Meaningwhile a friend pointed me to a linux man page specifying the VT102 sequences : man console_codes, and it appears that other formats exist; for example: ESC > for selecting numeric keypad mode, ESC % for selecting character set, etc.
However it seems that the control sequences always have the same format, I quote from man console_codes:
-
CSI (or ESC [) is followed by a sequence of parameters, at most NPAR (16), that are decimal numbers separated by semicolons. An empty or absent parameter is taken to be 0. The sequence of parameters may be preceded by a single question mark.
-
However, after CSI [ (or ESC [ [) a single character is read and this entire sequence is ignored. (The idea is to ignore an echoed function key.)
-
The action of a CSI sequence is determined by its final character. "
This final character may be @, A..Z, a..z, and ` (backquote) | [reply] [d/l] |