Defining Strings Of Characters; Defining Control Codes - Epson FX-80 User Manual

Hide thumbs Also See for FX-80:
Table of Contents

Advertisement

Defining Strings of Characters
Once the ESCape sequences are in place, adding more characters is
a breeze. To see how much of a breeze, simply add more data:
115~
DATA
7,8,16,36,64,36,16,8,7,~,~:
I
My A
116~
DATA
127,~,72,~,72,~,76,2,121,~,~:
I
My R
and make these changes:
13~
LPRINT
CHR$(27)"&"CHR$(~)"rt";
14~
FOR Y=l TO 3: LPRINT CHR$(139);
16~
NEXT Y
18~
LPRINT "rst"
ARB
Line 130 controls the reading of the data. It expects data for three
characters: r, s, and t. This example uses lower-case characters. If
necessary, you can use CHR$(114) and CHR$(116) in place of the "rt".
The attribute byte for each character is sent in line 140 and the other
11 bytes are read from DATA lines. This method is nice for quick and
easy character definition.
If you intend to print your characters in Proportional Mode, you'll
want to add a different attribute byte to the start of each DATA line
and adjust the READ routine for 12 numbers. Don't forget the at-
tribute byte or you'll end up with some "interesting" results.
Defining Control Codes
For some of you dedicated users, the range from 32 to 126 and 160
to 254 may not be large enough to accommodate all the characters
you want. How can that be? Well, perhaps you have a passion for
Egyptian hieroglyphics, or maybe you need a complete set of mathe-
matics symbols. And what about the entire Japanese character set
(it
has some 4000 symbols)?
If you get carried away with user-defined characters, you may end
up searching for more storage. Anticipating this need, Epson provides
. commands that will allow you to define and print certain control
codes in the same way that you treat other characters. (Remember
205

Advertisement

Table of Contents
loading

Table of Contents