Appendix B/ Using Ptc-64; Scripsit File; Special Characters - Radio Shack TRS-80 Operation Manual

Ptc-64 printer controller
Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

Appendix
B/ Using
PTC-64
Functions with
Radio Shack
Application
Programs
Although
the
PTC-64
is
primarily controlled
from
the front
panel keys,
it
can
become
an
even
more
useful
and powerful
device
when
used
in
conjunction with
Radio Shack
application
programs
that
make
use of
special printing functions.
Some
of
these
programs
include:
Viscalc™,
Profile
II™,
and
Scripsit™. In
this
section, we'll
use
Model
II
Scripsit
as
an example.
Scripsit
allows
the
use of
Printer
Control
Codes
to
perform
special functions
such
as
underlining or printing
special characters (the copyright, cents or
summation
symbols,
etc.).
This
is
what makes
it
possible
to
use
the
PTC-64
functions.
All
you need
to
do
is
define
printer control
codes
using
the
"Print Control
Code
Editing" procedure
described
in
the
Model
II Scripsit
Reference
Manual
(pg. 66).
Then,
when
you wish
to
use
the
PTC-64
functions or
special characters
previously
defined,
just
specify the appropriate
Printer
Control
Code;
the desired function
will
then
be executed
or the
special
character
will
be
printed.
Using
PTC-64
Special
Characters
When
defining
a Printer
Control
Code
you
should use
the
Hexadecimal
equivalent of the
PTC-64
Special Character. Also,
you
should
reserve
a Printer
Control
Code
solely for
activating the
PTC-64
special characters, the
TRANSLATE
code (IB
26
in
Hex.).
We'll
illustrate
how
this
is
done
with a simple example:
Suppose, while
typing a
Scripsit
file,
you want
to
use
the special
symbol
for
ohms.
Looking
at
the
list
of
PTC-64
special characters, you'll find
that
this
symbol
is
addressed
by
specifying
9F
(in
Hex.).
To
define Printer
Control
Codes, you
should:
1.
Start
up
Scripsit.
When
the directory
is
displayed, type
QD
to
display
the
disk
utilities
menu. Type
QD
to
choose
Print
Control
Editing.
2.
Answer
the
prompt by
typing
the
letter
(from
A
through Z)
you want
to
define.
We'll
use
the
letter
V
in
this
example.
The
cursor
will
move
to
the
ASCII
length
column.
3.
Press
dJ.
This
is
the
number
of two-character
ASCII
codes
for the
TRANSLATE
sequence (1B26).
4.
Press (ID,
meaning
this
code
will
not
be
printed
as
a
character.
Rather,
it
only
activates the
PTC-64
special characters.
5.
Type
the
ASCII
code
for
TRANSLATE:
1B26
and
press
GMEE)
6.
Type
a description
of
the
key you have
just
defined
for future
reference
and
press
(ENTER) again.
For example,
you
can type
"translate."
7.
Press
(ESC) to write
your
definition
to
the disk
and
return
to
the disk
utilities
menu.
Up
to this
point,
you have
defined
a Print
Control
Code
to
activate the
use of
PTC-64
Special Characters.
You
should
repeat the
procedure
above
to
define a
Print
Code
for the
special
character for
ohms, which
is
specified
by
9F. This time,
however,
both
the
code
length
and
the
justification
value
will
be
2 since
this
is
a
double-width symbol.
(When
17

Advertisement

Table of Contents
loading

Table of Contents