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