Now run the program to see the line printed in compressed mode.Cancelling Codes

As you saw in the third version of the print pitch program, you must cancel a code when you don’t want it any more. With very few exceptions, the LX-90 modes stay on until they are cancelled. It is important to remember this because an LX-90 mode can stay on even if you change from BASIC to another type of software. For example, if you run the program above and print a memo with a word processing program afterward, the memo is printed in compressed because the printer is still in compressed mode. To cancel compressed, use ASCII 18. In BASIC, you use this format:

LPRINT CHR$(18)

To avoid having one program interfere with the printing modes of another, you can cancel a mode one of two ways:

With a specific cancelling code, such as the ESCape "I" used above to cancel elite and the ASCII 18 to cancel compressed. Each mode has a cancelling code, which you can find in the discussion of the code and in Appendix B. Pica is an exception to this rule. To cancel pica, turn on elite or compressed.

By resetting the printer, a method explained in the next section.Resetting the Printer

Resetting your LX-90 cancels all modes that are turned on. You can reset the printer with one of two methods:

Sending the reset code (Escape “@“)Turning the printer off and back on.

Either one of these methods returns the printer to what are called its defaults, which are the standard settings that are in effect every time you turn the printer on. The two effects of resetting the printer that you should be concerned with are: it returns the printing to single- strike pica, thus cancelling any other pitches or enhancements

22