Line spacing The CHR$(8) code turns on the dot (or bit image) graphics mode, which is discussed later, 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 100PEN2,4 20 = CHR$(15 ):
= CHR$(8) 30PRINT#2, S$''r--------T---------,··u 40 PRINT#2,S$"1 I 1"1$ . 50 PRINT#2, S$''1---------+---------l' ' 60 PRINT#2, S$"1 I 1"1$ 70 PRINT#2, S$"L ________ _l ________ _J .. 80CLOSE2 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.
-· · ····--·····--·-----·-··---· r·-· -·--------····- j -· ··--·-····-·-··-··--·-··-· -·-·----·-- 1 ------··-·-- ···--·-- ·-·-··-·-----··-··--·- r ··--·---···--··---···-··-- 1·· ·------------··-·-..., 1- -------··--··-··-·+-·---·--·--·-----t I I I L-···-·-·---··-··· --·----l --- - --·-· - --- -J CHR$(14) or CHR$(15) returns the printer to the standard line spac- ing of 1 I6" (when the line spacing is not defined by secondary ad- dress of 6) . 44