Remapping a keyboard
ucscd.public at ucbvax.Berkeley.EDU
ucscd.public at ucbvax.Berkeley.EDU
Sat Jan 31 08:56:20 AEST 1987
One thing that I can think of that will get a keyboard remapped
in BSD 4.[23] and still get around the problem of a program
getting input from /dev/tty is to have the filter work as through
a pty -
disassociate filter process from tty
set tty to RAW, ~ECHO
get a pty
set pty to same as tty was initially
fork,
one side
read 0, filter write to pty slave
read pty slave, write 1
other side
dup pty over 0, 1
exec a [login] shell
----------------------------
Nathaniel Ingersoll
...!ucbvax!ucscc!public
More information about the Comp.unix.wizards
mailing list