Keyboard control

=?iso-8859-1?Q?J=F6rg?= Pleumann (joerg.pleumann@trantor.de)
Fri, 10 Sep 1999 09:50:29 +0100


Hello,

I have a console application for i386 Linux that needs some more
keyboard information than Curses/Terminfo is able to deliver. As an
example, there are keystrokes that are used in the application (e.g.
SHIFT-CURSOR for block marking, since it is a port from the Windows
world), but neither Xterm nor the Linux console seems to support these
keys. Also it would be nice to get information on the current state of
several special keys like ALT, CTRL etc.

The application already works using Curses/Terminfo, but I'd like to be
able to detect whether the console is on the local PC and enable a
different keyboard handling if this is the case. I just don't know
how... I noticed that there are "ioctl" codes looking like keyboard
stuff in "kd.h", but I have no information on parameters etc. - actually
I don't even know which device to use.

Can anyone point me to some online documentation about this? It would
also be nive to have some similar information on mouse programming and
(please don't laugh) controlling the speaker, if this is possible. :-)

-- 
Bye,                  E-Mail ......... mailto:joerg.pleumann@trantor.de
      Jörg            Homepage ... http://www.trantor.de/joerg.pleumann

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/