home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / ref / rvideo.doc < prev    next >
Text File  |  2006-10-19  |  1KB  |  39 lines

  1.  
  2.     CREATING A REVERSE VIDEO EFFECT
  3.  ON THE LCD OF A MODEL 100, 102 OR 200
  4.  
  5.           by Richard Hanson
  6.  
  7.                22-Feb-88
  8.  
  9. The LCD (liquid cristal display) of the model 100 is composed of 15,360 little
  10. square pixels that have two stable states, i.e., on & off.  The character set 
  11. is composed of a 6 wide by 8 high grid of square of these pixels.  To see the 
  12. entire grid for one character do a GRAPH X, then do a CODE C to see a reverse 
  13. video affect, the normal appearience of character #171, decimal.
  14.  
  15. In TEXT mode the characters you generate can only be seen in their "normal" 
  16. mode, but in BASIC you can display these same characters in a "reverse" mode. 
  17. Create the reverse affect by generating an ESC p before a printed string, and 
  18. off by generating an ESC q right after the printed string.
  19.  
  20.  esc = chr$(27)
  21.  esc p turns the reverse affect on
  22.  esc q turns the normal affect on
  23.  
  24. Example:
  25.  
  26.  10 r$=chr$(27)
  27.  20 n$=chr$(27)
  28.  30 print r$"p TITLE "n$"q"
  29.  
  30. The word  TITLE  in the above example will appear in reverse video when you 
  31. run this little program.  The space before and after the word makes it look 
  32. better in most cases... a matter of style!
  33.  
  34.  
  35. These instructions are off-the-head, and I'm sure there are other ways to 
  36. accomplish the same tasks -- feedback is welcome.
  37.  
  38. <END>
  39.