Quote:>Many thanks! TIOCSTI is just what I was looking for. About the only
>thing I can't figure out how to get to work is Shift-PgUp and
If I recall correctly, TIOCSTI puts characters in the buffer of the
tty driver. <Shift-PgUp> and the like are processed in the kernel at a
By the way, this is the second time in short while I have seen this
question. The previous one was from someone who wanted write a program
for a disabled person.
This makes me wonder if something like the following lines is a good
(1) Create a device (/dev/rawkey?) or an extra ioctl call, which
allows a user program to put bytes in the keyboard buffer.
(2) This device/ioctl should be capable to put bytes in the buffer
in any/oneof the following formats:
NOTE: (1) I haven't looked in while at the keyboard drivers and my
knowledge is a bit rusty. So it could all be nonsense.
I used linux/unix for 8 years, but have no experience in
operating system design etc. So if anyone can tell me
if this is a bad idea go ahead.
If it is a good idea, maybe I can code it up sometime. From
what I remember from the keyboard driver it doesn't seem that
P.S.: I wonder how the USB people make the USB-keyboards work, well
I will take a look at that sometime.