Combining Escape Sequences
Escape sequences may be combined into one escape sequence string. There are three important rules to follow when combining code:
1.For each escape sequence, the first two characters after the ? character must be the same.
2.When combining escape sequences, change the uppercase (termination) character in each individual escape sequence to lowercase.
3.The final character of the combined escape sequence must be uppercase.
The following escape sequence string would be sent to the printer to select legal paper, landscape orientation, and 8 lines per inch:
?&l3A?&l1O?&l8D
The following escape sequence sends the same printer commands by combining them into a shorter sequence:
?&l3a1o8D
Entering Escape Characters
Printer commands always begin with the escape character (?).
The following table shows how the escape character can be entered from various DOS software applications.
DOS Software |
|
|
Application | Entry | What Appears |
|
|
|
Lotus | Type \027 | 027 |
WordPerfect for DOS | Type <27> | <27> |
Hold down | ¨ | |
Hold down | ^[ |
154 Appendix D Printer Commands | EN |