Your first STEPS print in 12-dot spacing. Now tighten up the line spacing by adding lines 10 and 50:

10 LPRINT CHR$(27)"0"50 LPRINT CHR$(27)"2"

The CHR$(27)“0” of line 10 changes the usual 12-dot (1/6-inch) line spacing to a handy variation: 9-dot (l/B-inch) spacing. Nine-dot spacing is especially useful in the 9-pin Graphics Mode that we introduce in Chapter 11.

Another convenient line spacing is 7-dot (7/72-inch). To see this one, change line 10 to:

10 LPRINT CHR$(27)"1"

Although 7/-dot spacing is not suitable for text, it does allow you to print graphics designs with no gaps. You’ll use it extensively in the graphics programs presented later.

Variable line spacing

The FX includes the three line spacing commands shown above mainly for convenience. Besides printing in the preset 7-, 9-, and 12- dot spacing, the FX allows you to vary line feeds from 0 to 85 dots worth (0/7-inch to 85/72-inch). ESCape”A”CHR$(n), where n represents n/72-inch, changes the distance that a line feed covers to n dots.

95