Personal Computer News


Commodore 64 Text Reverse

 
Published in Personal Computer News #053

Commodore 64 Text Reverse

A useful function for the Commodore 64 would be a method of seeing at a glance the difference between screen prompts and data input by the user. While colours can be used to do this, a more visually effective way is to use reverse text. This can be done simply by including POKE 199,1 before an INPUT statement as in the example below.

The reverse text is automatically cancelled by the return following the input of data.

10 PRINT "INPUT DATA"
20 POKE 199,1:INPUT A$
30 PRINT"<2 CURSOR UP>"
40 GOTO 10

Brian Rogers, Crawley, Sussex

Brian Rogers