24

So for our example above, any of these BASIC statements will have the same result:

LPRINT CHR$(27);CHR$(87);CHR$(l)

LPRINT CHR$(27>;CHR$(87);CHR$(49)

LPRINT CHRS(27);"W";CHR$(l)

LPRINT CHR$(27);"W";CHR$(49)

LPRINT CHR$(27);"Wl"

Even though there are many commands that require the use of ASCII code 0 (the (NUL) character), the number “0” (zero or ASCII code 48) cannot be substituted. In these cases, instead of an unadorned 0 we will show CHR$(O) each time these com- mands are referenced.

That’s it for the basics. You are now ready to learn how to use the many features of your printer.

SOME SPECIAL KINDS OF TEXT

If you looked carefully at your printer’s self test, you probably noticed that it can print in italics. But that’s not all! Your printer can underline characters, print superscripts and subscripts, and perhaps most exciting, print near letter quality characters.

nNear Letter Quality characters

This printer’s Near Letter Quality (sometimes abbreviated as NLQ) character set is ideal for correspondence and other impor- tant printing, as it produces very high quality characters. Nor- mally, your printer prints draft quality characters. This is ade- quate for most work and has the fastest printing speed. For the final printout, try NLQ. The program below shows an example.

10' Demo of NLQ character set

20 LPRINT CHR$(27);"xl";

30 LPRINT "This line shows NEAR LETTER QUALITY!"

40 LPRINT CHR$(27);"xO";

50 LPRINT "This line shows standard print."

Page 30
Image 30
Star Micronics NP-IO manual Some Special Kinds of Text