[comp.unix.questions] Remapping keyboard

cotner@brahms.berkeley.edu (Carl Cotner) (11/18/88)

I'm interersted in writing a simple utility to remap the SUN 3
keyboard so that the L1-A abort sequence is disabled, and 
another combination of keys will issue that abort sequence.
However, I can't seem to make heads or tails of the /dev/kbd
man page.

I imagine that this kind of thing has been done before,
so if anyone would care to send some code fragments with lots 
of comments (I need a lot of hand-holding :-), I'd appreciate it.

One question though: even if root does remap the L1-A sequence 
to another combination of keystrokes, can an ordinary user 
UNDO this and map it back?  

Let me rephrase that:
	1) Can an unprivileged user find out what the abort 
	sequence has been remapped to?  Would he have to try 
	every combination of keystrokes to find out?

	2) Suppose he finds out, can he write another utility
	to remap it back to its original L1-A combination?
	(Granted, if he found out what the new abort sequence was
	he could just execute it if he wanted to reboot the machine.
	I'm just interested in knowing whether or not its possible
	for an unprivileged user to also remap the keyboard, and
	is there anything root can do to make the remapping 
	permanent.  A scenario I dread:  root remaps abort sequence;
	clever user/fiend finds out new sequence; user then remaps
	the sequence out of spite, so now root won't know this latest
	combination).

Many thanks.

Carl 
cotner@brahms.Berkeley.EDU


ucbvax!brahms!cotner	           Carl Cotner/UCB Math Dept/Berkeley CA 94720