sanjay@maui.cs.ucla.edu (07/04/89)
I need the ability to program the function keys, as well
as the keypad keys on my IBM PC RT. I work within an X11R3(?)
environment. It used to be a simple task (within X10) to map
the keys to produce codes that my programs would recognise.
(My programs are not written with X, but run from within xterm)
I am having problems doing the same thing under X11R3. I dug
through various documents, man pages etc., and have come
to the following conclusions :
1. X11R3 through xmodmap, allows you to map keycodes, and
modifiers to keysyms
2. X11R3, through the translation manager, allows you to
map events to actions.
The translation manager will accept specifications from the
Xdefaults file, (assuming that the client application uses
Xt properly)
It should be possible to do what I want using these mechanisms.
However, I could find absolutely nothing in the documentation
that would let me substitute a string for a certain action.
Note, that my application needs to identify the 10 function
keys, 11 keys on the numeric keypad, and whether the modifiers -
control, shift, and meta, have been pressed simultaneously.
(actually I need only a subset of about 60 combinations from
these 21 * 4 possibilities, ignoring multiple modifiers being
pressed)
Can some X gurus out there in netland help me with this quest?
Please note that I am not writing an X application, I just happen
to be using xterm.
Ralph Swick (swick@ATHENA.MIT.EDU) had posted an article
<8906292003.AA02414@LYRE.MIT.EDU> sometime back, that seemed
promising. However, what he had suggested in there failed for
me. Adding these lines to my .Xdefaults caused Xterm to die.
XTerm*VT100.translations: #override \n\
Shift<Key>comma: string("<") \n\
Shift<Key>period: string(">")
I could find no references to the action string, in the
documentation I went through. Can somebody please help!!!
thanx
Sanjay
------------------------------------------------------------
sanjay@cs.ucla.edu I used to be indecisive,
or {...}!rutgers!ucla-cs!sanjay now I am not sure.rws@EXPO.LCS.MIT.EDU (07/05/89)
However, I could find absolutely nothing in the documentation that would let me substitute a string for a certain action. Adding these lines to my .Xdefaults caused Xterm to die. Since the R3 xterm man page has a section on KEY TRANSLATIONS that describes how to rebind, and what Ralph described should work, my guess is that you don't really have an R3 xterm.