Hi all.
When you press your keyboard, the program
that was listening at /dev/tty1 gets the input.
for example, when you typed
'abc' right after boot, it might look like,
login: abc
it's an input to the login program on
/dev/tty1.
Here, I'd like to have my keyboard put
character on remote xterm window /dev/pts/n.
Does anybody know how to achieve
this?
if there's a utility, a shell command, or a
good system call,
I'd make it running on /dev/tty1 and
pass the signal over to /dev/pts/n.
Is there anything like that?
Or I'd like to modify
$(linux)/drivers/char/console.c, keyboard.c ...
to get it activated by alt+Fn set.
( maybe not possible... )
I'm currently doing keyboard input via
calling handle_scancode() (in drivers/char/keyboard.c)
within my keyboard interrupt handler.
But I don't know what's exactly being done
in handle_scancode(),
fg_console seems related...
Either way, or some better way, I have to
solve this problem...
Please help.
Thanks in advance.
Regards,
Theo
|