Now run the program. You should get the results you see below,10pica characters per inch.

A B C D E F G H I J K L M N O P Q T R S T U V W X Y Z [ \ ] ˆ _ ` a b c d e f g h i

Changing Pitches

Now you can try other pitches. As we explained in Chapter 3, the IX-86 uses the same pattern of dots for pica, elite, and condensed characters, but it changes the horizontal spaces between the dots to produce the three different widths.

In elite mode there are 12 characters per inch, and in condensed there are 17. The LX-86 prints in elite when it receives the ESCape “M” command and prints in condensed when it receives the ASCII 15 command. Print a sample line of elite characters by adding this line to your previous program:

20 LPRINT CHR$ (27) “M” ;

This line uses the command for elite, ESCape “M”, to turn on that mode. Your printout should look like the one below.

ABCDEFGHIJKLMNOPQRSTUVWXYZ[\lˆ_`abcdefghi

The next addition to the program cancels elite with ESCape “P” and turns on condensed with ASCII 15:

30 LPRINT CHR$ (27) “P” CHR$ (15) ;Now run the program to see the line printed in condensed mode.ABCDEFHIGKLMNOPQRSTUVWXYZ[\]ˆ_`abcdefghiCancelling Codes

As you saw in the third version of the print pitch program, you must cancel a code when you do not want it any more. With very few exceptions, the LX-86 modes stay on until they are cancelled. It is important to remember this because an LX-86mode can stay on even if you change from BASIC to another type of software. For example, if you print a memo with a word processing program after you run the program above, the printer will still be in condensed mode; therefore, the memo will be in condensed print. To cancel, use ASCII 18.

35