[comp.windows.x] strings from a key

richk@june.cs.washington.edu (Richard Korry) (10/24/89)

I want to make some keys on my DecStation 2100 produce strings similar to
those produced by the rest of the keyboard, e.g.  ^[[5~. Is xmodmap the
way to do this? The line % xmodmap -e "keycode 142 = Escape bracketleft ..."
does not work as it only binds escape. So there is obviously something else
I am missing that the man pages does not explain. ANy help is appreciated.
Please e-mail response. thanks
	rich

klee@chico.pa.dec.com (Ken Lee) (10/25/89)

In article <9567@june.cs.washington.edu>, richk@june.cs.washington.edu
(Richard Korry) writes:
> I want to make some keys on my DecStation 2100 produce strings similar to
> those produced by the rest of the keyboard, e.g.  ^[[5~. 

There is no global way of doing this in X.  You'd really mess up some
applications if you do it globally.  You can do it in an
application-dependent way, for applications that support it.  For
example, xterm supports string mapping through translation management.
dxterm supports it through VT100/VT300 emulation.  Other applications
do similar things, in an application-dependent fashion.

Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee@decwrl.dec.com
uucp: uunet!decwrl!klee