[comp.windows.x] key mappings

jim@EXPO.LCS.MIT.EDU (Jim Fulton) (03/08/88)

> In X10R[34], the .Xkeymap file allowed you to generate an arbitrary
> string with a single keystroke.  Maybe I'm dense, but I can't figure
> out how to do that under X11 using xmodmap.  Can anyone give me some
> help?  Thanks.

The new xmodmap in Release 2 just allows you to specify alternate keysym
bindings.  X11 does not currently provide a global mechanism for doing this
(i.e. there is no protocol for transmitting this information to the server).
The XRebindKeysym procedure can be used to do this for the particular client
calling the routine, but not for everyone. 

Arbitrary bindings of strings to keysyms or keycodes end up looking a lot like
resources (i.e. you really want to be able to specify "global" defaults as well
as class or instance specific bindings).  For example, you might want all
xterm's to generate a common set of commands for the various function keys, but
all emacs's to generate editting escape sequences.  Or not, but you should 
still have the choice.

					Jim Fulton
					X Consortium
					MIT Laboratory for Computer Science 
					(617) 253-1428
					jim@EXPO.LCS.MIT.EDU