avolio@decuac.DEC.COM (Frederick M. Avolio) (03/17/87)
I am running verison 18.37 of GNU Emacs on a system with X. Everything works great with one exception. I would like GNU Emacs to understand the keypad when being run in a window. Now, I know that if I start GNU Emacs without having it use another window everything is fine (thinks it is a vt100 I guess?). But independant of "xterm" it does not accept input from the keypad. (Although if I type the escape sequences directly the functions bound to them work.) Ideas? Thanks. Fred
rlk@athena.mit.edu (Robert L. Krawitz) (03/17/87)
In article <1209@decuac.DEC.COM> avolio@decuac.DEC.COM (Frederick M. Avolio) writes:
]
]I am running verison 18.37 of GNU Emacs on a system with X.
]Everything works great with one exception. I would like GNU Emacs to
]understand the keypad when being run in a window. Now, I know that if
]I start GNU Emacs without having it use another window everything is
]fine (thinks it is a vt100 I guess?). But independant of "xterm" it
]does not accept input from the keypad. (Although if I type the escape
]sequences directly the functions bound to them work.)
The reason that the keypad works in xterm(1) is because xterm
specially maps it. The default mapping doesn't map these keys.
To fix: you need to set up a .Xkeymap file with the right things.
Once you have a .Xkeymap file (you can even copy the default keymap
and run keycomp on it), you can use the functions x-rebind-key and
x-rebind-keys to rebind specific keys.
Robert^Z
tsf@theory.cs.cmu.edu (Timothy Freeman) (03/18/87)
In article <1209@decuac.DEC.COM> avolio@decuac.DEC.COM (Frederick M. Avolio) writes: >I am running verison 18.37 of GNU Emacs on a system with X. >I would like GNU Emacs to >understand the keypad when being run in a window. The trick is to make a ".Xkeymap" file that defines the keypad keys to send out escape sequences. Read the man entry for keycomp. I had to peruse the source code for the Sun-specific part of X to find out what numbers in the keymap corresponded to the application keys. If you are using a Sun, I can mail you the lines I added to my keymap to get the application keys to mail the same codes that they send when my machine isn't running X. Tim Freeman Arpanet: tsf@theory.cs.cmu.edu Uucp: ...!seismo!theory.cs.cmu.edu!tsf