kelvin@cs.utexas.edu (Kelvin Thompson) (02/12/89)
I need some help reading the state of an HP 3xx's keyboard.
What I want to do is write a small utility that checks to see if
either of the keyboard's shift keys are depressed, then prints
"on" or "off" to stdout.
There is a nice writeup on 'hilkbd' in section 7 of the Unix manual,
which would seem to meet my needs. However, the writeup describes
some preprocessor symbols (KBD_STATUS and KBD_STAT_SHIFT) that are
not in the indicated header file 'sys/hilioctl.h'. In fact, fgrep
tells me these symbols are not in any standard header file. (My
manual is dated July 1987; include files are December 1987.)
Could somebody please send me some of the following kinds of info:
[1] Where to find definitions for KBD_STATUS and KBD_STAT_SHIFT
as described in the 'hilkbd' writeup.
[2] The actual definitions for KBD_STATUS and KBD_STAT_SHIFT,
so I can set the symbols myself.
[3] Pointers to how to use the symbols in the header files
'sys/kbd*.h'.
[4] Other ways of determining the state of the shift keys.
Please e-mail to prevent net clutter. I'll summarize all useful
replies. Thanks in advance.
--
-- Kelvin Thompson, Lone Rider of the Apocalypse
kelvin@cs.utexas.edu {...,uunet}!cs.utexas.edu!kelvin