Programmer’s Corner

Author(s): Chuck Dawson
Publication: LISTing Newsletter
Date: April 1985
Pages: 20

Here is something I picked up from Chuck Dawson in the Ft. Worth User’s Group Newsletter.

Did you know that you have access from the keyboard to all of the PRINT options, besides INVERSE? They are accessed from the extended mode,which is reached by pushing the CAPS SHIFT and SYMBOL SHIFT at the same time. They are:

EXTENDED MODE
           0-7 PAPER Color
           8   BRIGHT off
           9   BRIGHT on
SHIFT      0-7 INK color
           8   FLASH off
           9   FLASH on

You ask, “But Chris, how does this work?” Well, when you push these keys, the computer inserts what is known as control characters. Try this:

10 LET a$="__I_Love__My_Wife[illegible]"
20 LET a$(1)=CHR$ 18
30 LET a$(2)="1"
60 PRINT AT 0,0;a$
RUN

If you look on page 240 of your user’s guide, you will see that character 18 controls FLASH. The “1” character turns the flash on. Add this

40 LET a$(9)=CHR$18
50 LET a$(10)="0"
RUN

Using the same CHR$18 followed by a zero turns flash off.What if you use CHR$18 without a 0 or 1 following it? That’s right! You get an INVALID COLOR error. BRIGHT is CHR$19 and INVERSE is CHR$20, and they both work the same way as FLASH.

The INK control (CHR$16) and PAPER control (CHR$17) work in a similar way, but the number that follows is the color number and should be 0-7.

.Can you figure out how to use any of the other control characters?