19
EA KIT129-6
ESC
Z
L/Z/R
x1 y1 text...
NUL
Horizontal string
Writes the string
text...
left justified (
L
), centered (
Z
) or right justified (
R
) at position
x1
taking into account the set text mode (
ESC L
). Multi-line text can also be output,
with the lines separated by the character '|' (=$7C). The string must be concluded with
NUL
= $00. Position
y1
is the upper edge of the 1st line.
Example 1: Writes the text "Left|Ok" left justified at 0,0.
$1B $5A $4C $00 $00 $4C $65 $66 $74 $7C $4F $6B $00
Example 2: Writes the text "Center|Ok" centered at 25,0.
$1B $5A $5A $19 $00 $43 $65 $6E $74 $65 $72 $7C $4F $6B $00
Example 3: Writes the text "Right|Ok" right justified at 49,0.
$1B $5A $52 $31 $00 $52 $69 $67 $68 $74 $7C $4F $6B $00
ESC
Z
O/M/U
x1 y1 text...
NUL
Vertical string
Writes the string
text...
rotated by 90° degrees top justified (
O
), vertically centered (
M
)
or bottom justified (
U
) at position
y1
taking into account the text mode (
ESC L
). Multi-
line text can also be output, with the lines separated by the character '|' (=$7C). The
string must be concluded with
NUL
= $00. Position
x1
is the right edge of the 1st line.
Example 1: Writes the text "Top|Ok" top justified at 49,0.
$1B $5A $4F $31 $00 $54 $6F $70 $7C $4F $6B $00
Example 2: Writes the text "Mid|Ok" vertically centered at 49,15.
$1B $5A $4D $31 $0F $4D $69 $64 $7C $4F $6B $00
Example 3: Writes the text "Bot|Ok" bottom justified at 49,31.
$1B $5A $55 $31 $1F $42 $6F $74 $7C $4F $6B $00