HP LaserJet 5100 Printer series - Combining Escape Sequences

background image

Combining Escape Sequences

Escape sequences may be combined into one escape sequence
string. There are three important rules to follow when combining

1 The first two characters after the


character (the parameterized

and group characters, see Figure D-1) must be the same in all of
the commands to be combined.

2 When combining escape sequences, change the uppercase

(termination) character in each individual escape sequence to
lower case.

3 The final character of the combined escape sequence must be


The following is an example of an escape sequence string that
would be sent to the printer to select legal paper, landscape
orientation, and 8 lines per inch:


The following escape sequence sends the same printer commands
by combining them into a shorter sequence:


background image


Printer Commands