ESC a n
[Name]
Select justification
[Format]
ASCII
Hex
Decimal
[Range]
0
n
48 n
ESC a n aligns all the data in one line to a specified position. Left justification is selected when n=0 or
48, centering is selected when n=1 or 49, and right justification is selected when n=2 or 50. The default
setting is left justification (n=0). This command is enabled only at the beginning of a line in standard
mode. If this command is entered in page mode, an internal flag is activated and the command is
enabled when the printer returns to standard mode.
Program Example
FOR n=0 TO 2
PRINT #1, CHR$(&H1B);"a";CHR$(n);
PRINT #1, "ABC"; CHR$(&HA);
PRINT #1, "ABCD"; CHR$(&HA);
PRINT #1, "ABCDE"; CHR$(&HA);
NEXT n
1-30 Command Descriptions
ESC
a
n
n
1B
61
27
97
n
Print Sample
ABC
ABCD
ESC a 0
ABCDE
ABC
ABCD
ABCDE
ESC a 1
ABC
ESC a 2
ABCD
ABCDE
Rev. A