Chapter 3: Character Size & Spacing Commands22
Double Width & Height Printing Commands
The double width & height commands allow you to select double width, double height, or
double width and double height printing in the IBM emulation.
Double Width & Height Printing Command, 9-Pin Printers (IBM)
⻬ ML320 E/I, ML321 E/I ⻬ ML320 Turbo, ML321 Turbo ⻬ ML520, ML521
Function ASCII Decimal Hexadecimal
Double Width and/or
Height Printing
ESC [ @ L
n
H
n
NUL
NUL n
1
n
2
27 91 64 L
n
H
n
0
0 n
1
n
2
1B 5B 40 L
n
H
n
00
00 n
1
n
2
This command lets you specify character width and line spacing in addition to character
height.
Parameters n
1
and n
2
Parameters n
1
and n
2
are used to set the width, line spacing and height used. Variable n
1
sets
the character height and line spacing; variable n
2
sets the character width.
Parameters L
n
H
n
These parameters specify the number of bytes of the modes, calculated as
L
n
+ (H
n
x 256)
Generally, L
n
is 4 and H
n
is 0.
Table 18: IBM ESC [ @ Command —
Character Height/Line Spacing for n
1
Values
Decimal Value of n
1
Character Height Line Spacing
0 Unchanged Unchanged
1 Standard Unchanged
2 Double Unchanged
16 Unchanged Single
17 Standard Single
18 Double Single
32 Unchanged Double
33 Standard Double
34 Double Double
Table 19: IBM ESC [ @ Command — Character Width for n
2
Values
Decimal Value of n
2
Character Width
0 Unchanged
1Standard
2 Double
For example, to use double height characters with double the normal line spacing, without
changing the width of the characters use this BASIC statement:
LPRINT CHR$(27);"[@ ";CHR$(4);CHR$(0);CHR$(0);CHR$(0);CHR$(34);CHR$(0)