Escape sequence / control function syntax, Escape sequence syntax, Control sequence syntax – Genicom GEK 00031B User Manual

Page 205

Advertising
background image

GEK-00029B

5000 Series Programmer’s Manual

205

ESCAPE SEQUENCE / CONTROL FUNCTION SYNTAX

Within PPL III, the overall description given to control codes, escape
sequences and control strings is "commands." For consistence with

the rest of this manual, separateness will be maintained.

Escape Sequence Syntax

Escape sequences have the following general format:

Example: ESC ( B
CSI: The ESC control character (1BH) is the escape sequence

introducer.
I: Intermediate characters received after and ESC and should be in

the range of 20H to 2FH. No more than 3 intermediate characters are
permitted within PPL III. If four or more intermediate characters are
received before the final character, the event is noted and the entire
sequence is ignored.
F: A final character is in the range of 30H to 7EH. It indicates the

end of an escape sequence. The intermediate characters (if any) and
the final character, taken together, define the function of the
sequence.

Control Sequence Syntax

Control sequences differ from escape sequences in that they have
parameters that modify the function of the control sequence. The
general format for a control

CSI: The control sequence introducer has a hex value of 9B. This is
equivalent to a 7-bit escape sequence of ESC [ or 1BH 5BH. Both
encodings are recognized as a CSI.
Parameters: Parameter characters are in the range of 30H to 3FH. A

parameter modifies the action of the control sequence. Generally,
parameters are ASCII digits and act as a numerical index in the
sequence. Within PPL III, the occurrence of the "?" character (3FH) or

Escape Sequence Introducer

Final Character

Intermediate Characters

<ESC><I><F>

<CSI><P><I><F>

Final Character

Intermediate Characters

Parameters

Control Sequence Introducer

Advertising