Appendix C / Installable Device Drivers
• Use BASIC's LPRINT statement with
the
CHR$ func-
tion, as described
in
the
BASIC
Reference Manual.
• Make
an
MS-DOS function call, as described
in
the
MS-DOS Programmer's Reference Manual.
• Make a
BIOS
call, as described
in
the MS-DOS Pro-
grammer's Reference Manual.
Example:
This example uses BASIC to
set
the number of lines per page to
55:
Iprint
chr${27>;chr${67>;chr${SS>
I
ENTER
I
CHR$(27)
sends
the
ESCAPE,
CHR$(67)
sends
the
C,
and
;-
CHR$(55) sends the number of lines.
. !
:-1
,
,
Printer
Control
Codes
Function Code Result
Set
lines per page ESCAPE C;n;
, .
i
i :
Set
horizontal
tabs
ESCAPE D;nI;n2
n3;...nk;NUL;
Sets
the
page length to n
lines. n is a number
in
the range 1-127. Issue
this command before
setting vertical tabs or
form feed.
Sets horizontal
tab
stops
at
nI,
n2, n3 and
so
on.
The numbers can be
in
the range 1-80
in
regular
print mode or
the
range
1-132
in
compressed print
mode. When
the
printer
is
turned
on,
the
tab
stops
are
automatically
set
to every eight
columns. Use ESCAPE D
to change them.
335