fischer@utower.tower.in-berlin.de (Axel Fischer) (01/05/91)
Hello netlanders,
I have tried to map the up, down, left and right cursor key to new
Control keys.
My .xmodmaprc is:
----
keycode 87 = Control_B
keycode 91 = Control_P
keycode 92 = Control_N
keycode 91 = Control_F
----
Unfortunately xmodmap displays the following error messages:
----
xmodmap: .Xmodmap:0: bad keysym name 'Control_B' in keysym list
xmodmap: .Xmodmap:0: bad keycode keysym list
xmodmap: .Xmodmap:1: bad keysym name 'Control_P' in keysym list
xmodmap: .Xmodmap:1: bad keycode keysym list
xmodmap: .Xmodmap:2: bad keysym name 'Control_N' in keysym list
xmodmap: .Xmodmap:2: bad keycode keysym list
xmodmap: .Xmodmap:3: bad keysym name 'Control_F' in keysym list
xmodmap: .Xmodmap:3: bad keycode keysym list
xmodmap: 1 errors encountered, aborting.
----
Can anyone please help me out?
Please reply via mail, if interest I summarize and post.
-Axel
--
fischer@utower.tower.in-berlin.de / fischer@tmpmbx.UUCP
Class of '93
| That is not dead, which can eternal lie.
Go fast - take chances. | Yet with strange aeons, even death may die.
mouse@larry.mcrcim.mcgill.EDU (01/06/91)
> I have tried to map the up, down, left and right cursor key to new > Control keys. > My .xmodmaprc is: > keycode 87 = Control_B > keycode 91 = Control_P > keycode 92 = Control_N > keycode 91 = Control_F > Unfortunately xmodmap displays the following error messages: > xmodmap: .Xmodmap:0: bad keysym name 'Control_B' in keysym list > xmodmap: .Xmodmap:0: bad keycode keysym list [etc] There is no such key as Control_B. Control-B is a combination, typed using two keys (Control and B); XLookupString turns a down event for a B key, when the Control modifier is active, into a ^B character. xmodmap allows you to rearrange keys on your keyboard; it does not allow you to reassign keys arbitrarily. Depending on what you want, it may be possible to use a different mechanism. Many Xt clients (xterm among them) have a Translations resource which allows you to reassign key meanings for that client; this would allow you to do what you appear to want to do - but only for clients that understand the resource. I am hoping R5 addresses the common wish to "assign a string to a key" in a client-independent manner. If it doesn't, I will probably try to hack something into Xlib to deal with it. > That is not dead, which can eternal lie. > Yet with strange aeons, even death may die. I know that quote, I'm sure of it. Lloyd Alexander? der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu