Regular Stair Steps - Epson FX-80 User Manual

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

Advertisement

S$ml~lm~'I~~I~~
~$A~H~S'~~S
STAIR STEPS
STAIR STEPS
STAIR STEPS
STAIR STEPS
STAIR STEPS
STAIR STEPS
STAIR STEPS
STAIR STEPS
STAIR STEPS
STAIR STEPS
ST A I
F~
STEPS
STAIR STEPS
STAIR STEPS
STAIR STEPS
STAIR STEPS
STAIR STEPS
Figure 7·2. Regular STAIR STEPS.
Quite a trick, huh? Figure 7-2 shows what you'll get if your computer
does not pull any funny stuff with the control codes. (Using
CHR$(X +128) in line 30 may help avoid some potential problems.)
In any case, the point of this program is to show how the (ESC)
"A" sequence in line 30 works. (ESC)" A"CHR$(n) changes the dis-
tance covered by a line feed to n dots (n/72nds of an inch). The
(ESC) "2" in line
SO
restores the spacing to the usual 12 dots. Astute
readers will observe that (ESC) "2" has the same effect as (ESC)
" A" CHR$(12)-which gives you two different ways to skin the same
hide.
Notice the positioning of the (ESC)" A" sequence in line 30-right
between the strings "STAIR" and "STEPS". The printout shows that
the line-feed command is not executed until the end of the print line.
Otherwise the two strings would be printed on different lines. In fact,
the (ESC) " A" can be positioned anywhere on the print line with the
same result.
82

Advertisement

Table of Contents
loading

Table of Contents