r--"
Appendix C I Installable Device Drivers
Suppress line feed ESCAPE Y:n
after
carriage
return
: '
Function
Pass
n codes
directly to
the
printer
Reset (cancel)
driver
Code
ESCAPE
Yin;
CAN or DEL
Result
Resets all counters
and
tab
stops to
their
default
values.
If
n is
0,
the
line feed
suppression is
turned
off.
If
n is any
number
greater
than
0,
the
line
feed suppression is
turned
on.
r-
,
Converting Printer Code
LPDRVR also lets you convert
any
printer
code to
any
other code
before
it
is
sent
to
the
printer.
It
does
this
by
maintaining
a 256-
byte table called a
character translation table.
Initially
code is
translated
to
its
original form but, by
making
changes to
the
table, you
can
set
any code to be converted.
To
obtain
the
memory address of
the
code
in
the
table,
make
the
necessary BIOS call from
an
assembly-language program
as
follows:
1.
Set
the
AH
register
to
3.
2. Execute
an
INT
17H
instruction.
The pointer
at
the
beginning
of
the
character
translation
table is
returned
in
the
ES:BX registers. Each code is offset from
the
memory location pointed to by ES:BX by
its
ASCII value. OFFH
in
the
table indicates
printer
code OFFH or indicates
that
a
string
translation
is defined
for
that
character. OFFH
can
then
be changed to redefine
the
character.
LPDRVR also lets you convert
any
printer
code into a
string
of
as
many
as
eight
codes before
it
is
sent
to
the
printer.
You
can
define
as
many
as
50 different replacement strings.
This
is done
by sending
the
following escape code
and
code sequence
to
the
printer
driver:
esc
wn
code;
string
337