Unit installation
Line spacing
The CHR$(8) code turns on the graphics mode, which is discussed
in the next chapter, but this code has another use. The CHR$(8) code
also reduces the space between print lines.
For printing text you want space between the lines, but occasionally
with graphics characters you will want the space between lines elimi-
nated so that the characters can combine into larger figures. The next
program shows what we mean.
Lines 20-50 in this program use several graphics characters. To be
sure that the lines meet each other, press
SHIFT
and * at the same time
for the horizontal lines and
SHIFT
and - for the vertical lines.
NEW
10 OPEN2,4
20 S$=CHR$(15): L$=CHR$(8)
30 PRINT#2,S$"
"L$
40
PRINT#2,S$"
"L$
50 PRINT#2,S$"
"L$
60 PRINT#2,S$"
"L$
"L$
70 PRINT#2,S$"
80 CLOSE2
As you can see from the printout, the CHR$(8) code allows you to
combine some of the graphics characters to form boxes. Without the
CHR$(8) code, the vertical lines have gaps in them, as shown in the
second printout.
The commands for the modes used in this chapter are summarized
in Appendix B.
23