home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / CLIPPER / LANKEY / LANKEY.DOC < prev    next >
Text File  |  1992-12-15  |  2KB  |  31 lines

  1. Files contained in LANKEY.ZIP
  2.  
  3. LANKEY.C   : C code, C_INKEY() and C_PEEK() functions
  4. LANKEY.OBJ : result of compiling NEWINKEY.C
  5. LANKEY.PRG : Clipper code, P_INKEY() function
  6. LANKEY.DOC : this file
  7.  
  8.  
  9. The C functions are support functions for the Clipper function P_INKEY().  You
  10. should use P_INKEY() wherever you have calls to INKEY() now.  Note that
  11. P_INKEY() is a wait state, which means your SETKEYs will work.  It should be
  12. easy to take this feature out of it if you don't like it.  You will also
  13. probably want to modify GETSYS.PRG to use P_INKEY() instead of INKEY().  If
  14. you leave the wait state feature in P_INKEY(), you should also take out the
  15. part of GETSYS.PRG that checks to see if the key is a SETKEY, because
  16. P_INKEY() handles that before returning control to GETSYS.  If you have any
  17. questions about the code, feel free to email them to me (Shawn B. Lipscomb c/o
  18. Gary Lewis 76247,772).
  19.  
  20. C_INKEY() watches the keyboard buffer's tail to sense when a key has been hit.
  21. There are other ways to sense a keystroke, but a bug in DOS 3.3 prevents
  22. functions like kbhit() from sensing enhanced-keyboard-only key combinations
  23. (like <CTRL><UP>) under certain circumstances.  kbhit() is still necessary
  24. though, because that's where Novell gets most of its time.
  25.  
  26. These functions should work on all non-dedicated servers, but have only been
  27. tested on Novell Netware.
  28.  
  29. You may distribute LANKEY.ZIP freely, as long as the original files stay
  30. intact.  You may, however, add your own files to the ZIP.
  31.