Subject: Re: How to remap a key?
To: Yubyub bird <jonl@yubyub.net>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: current-users
Date: 03/27/2000 10:28:58
You're right. If you first remap F1, the command `map+="keysym F2 = F1"' cannot
succeed (but in case of a lock, I get `wsconsctl: keysym F1 not found').

Best solution is to do the complete remapping in ONE `wsconsctl -w map+=' command.

	wsconsctl -w map+="keysym F1 = Escape keysym F2 = F1 keysym F3 = F2 ..."
-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)

> Yubyub bird said on 2000-03-26:
> 
> > I'm running the 20000314 snapshot (1.4U).  I'd like to remap my F1 key to
> > the ESC key, then remap F2-F10 to F1-F9 - it looks like this can be done
> > via wsconsctl, but I'm not sure how.
> > 
> > Can someone enlighten me?
> 
> Hmmm... figured it out finally, had a problem, then figured out where I
> had a problem :-/
> 
> If I do:
> 
> 	wsconsctl -w map+="keysym F1 = Escape"
> 	wsconsctl -w map+="keysym F2 = F1"
> 
> Things seem to lock up for me - no response, nada.  Couldn't even drop
> into ddb.
> 
> Doing it in reverse, however:
> 
> 	wsconsctl -w map+="keysym F2 = F1"
> 	wsconsctl -w map+="keysym F1 = Escape"
> 
> Worked like a champ.
> 
> Is this normal/expected?
> 
> -yubyub
> ----------------------------------------------------------------
> croquette - n.  A small cake of minced | SMTP: yubyub@yubyub.net
>  food, such as poultry, vegetables, or | http://www.yubyub.net
>  fish, that is usually coated with     | NetBSD on Sparc, Alpha
>  bread crumbs and fried in _deep fat_. |  i386, Mac68k, VAX