[comp.windows.x] can xmodmap assign escape sequences to keys?

rws@EXPO.LCS.MIT.EDU (05/31/89)

You can't do what you want with xmodmap.  It's for assigning keysyms
to keys, not for assigning strings to keys.  Strings are very application
specific.  Within a terminal emulator, the emulator must provide this
capability.  The MIT R3 xterm provides this capability, using translations
and the "string" action routine.  See the xterm man page.  If you are
using some other terminal emulator, this capability might or might not be
provided, and might be provided in some other form.

swoodhead@SUN.COM (Simon Woodhead) (06/01/89)

Please reply direct to George Michaelson at the address below, or to the
comp.windows.x newsgroup / xpert mailing list.

----- Begin Included Message -----

Newsgroups: comp.windows.x
Subject: can xmodmap assign escape sequences to keys?
Organization: University of Queensland, Brisbane, Australia

how do you use xmodmap or any other utility to assign arbitrary 
char-sequences per keystroke?

I'm trying to make an RT keyboards numeric keypad function as a vt100
would so that I can (yecch!) use EDT on VMS systems. This requires
num-lock as well as all the "sane" num-keys to be re-defined as DEC ESC
sequences.  The AOS4.3bsd utility pf (1) doesn't work within X because
a different keyboard driving mechanism is used.

the xmodmap documentation discusses single code replacement and overloading
under different contexts, but doesn't seem to show assigning a code sequence
to a keypress.

Pointers to documentation etc received with thanks..

	-George

-- 
ACSnet: ggm@brolga.cc.uq.oz                    Phone: +61 7 377 4079
Postal: George Michaelson, Prentice Computer Centre
          Queensland University, St Lucia, QLD 4067 


----- End Included Message -----