Re: keyboard raw mode?

Mathieu Bouchard (boum01@UQAH.UQuebec.CA)
Tue, 23 Jun 1998 04:58:53 -0400 (EDT)


> As far as I can tell, a fix would require complicated tty hacking.
> I'm sure at least one person here could fix it, but maybe he has
> more important stuff to do. I can hope not though. :-)

a solution: add a /dev/keyboard for that purpose. restrict its use to
local users, under the same scheme as one would do for /dev/audio; this
permission scheme is probably userland, but the idea of a /dev/keyboard
is not. As I see it, /dev/tty0 would be reading from /dev/keyboard to get
its info, and then pass it along to the proper /dev/tty[1-9]...

I say that from the point of view of a very light kernel hacker. I wrote
this script while reading the kernel's sources, and this is one of a
handful of things i've done:

foo=1
while [ true ]; do
echo -n -e '\033[12;'$foo']'
foo=`expr \( $foo % 4 \) + 1`
sleep 1
done

all other things i've done are palette reconfiguration scripts, clumsy
patches to the joystick.o driver (to enable the two extra buttons when the
two extra pots don't exist), and a joystick-to-mouse converter that sucks.

matju

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu