Using Control Codes - OKIDATA 120 Handbook

For commodore computers
Table of Contents

Advertisement

,.;;;;;;;.-__
Putting it together
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Here's a sample program that illustrates these statements:
10
OPEN 1,<';,0
20
PRINT#l,
"THE OKIDATA
120"
3D
PRINT#l,
"PRINTS LIKE
THIS."
<';0
CMD
1
50
PRINT "THIS PRINTS,
TOO
. . . "
60
PRINT#l,
70
CLOSE1
.rul-- - -
Using control codes
_______________ _
If you use a PRINT# command followed only by text, OKI-
DATA 120 gives you standard printing:
HERE'S NORMAL PRINTING
By using "control codes," you can spice up this standard
printing with headlines, underlining, and different type
sizes
.
You can control spacing and page length. The codes
even let you print graphics
.
When the computer sends the OKI DATA 120 a control
code, the printer responds by changing one of its printing
features. Changes aren't permanent, however; they can be
canceled by sending certain other codes or by switching
the pri nter off.
When you write a program, you should insert the control
code right before you want the "special effect" to take
place. Here's an example:
10
OPEN
1,<';
20
PRINT#l,"HERE'S NORMAL
PRINTING"
3D
PRINT#l, CHR$ (M) ; "DOUBLE WIDTH"
<';0
CLOSE1
HERE'S NORMAL PRINTING
DOUBLE
WIDTH
21

Advertisement

Table of Contents
loading

Table of Contents