Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!EDDIE.MIT.EDU!compass!worley From: compass!worley@EDDIE.MIT.EDU (Dale Worley) Newsgroups: gnu.emacs Subject: VT100 keypad codes on Gnu Emacs Message-ID: <8910061359.AA13718@sn1987a.compass.com> Date: 6 Oct 89 13:59:32 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 27 The keypad key `.' on a vt100 keyboard emits the escape sequence ``ESC O n'' (3 hex. characters). In the non-X11 emacs (`-nw' switch) this code is bound to `delete-char'. In xemacs however, this doesn't work. Interestingly, typing `Cntl-Q' and then the keypad key `.' inserts a `.' into the buffer. The function `delete-char' is executed if I enter the escape sequence `ESC O n' (3 key strokes) "on foot". So it seems that the software binding does work, but not the mapping of the keypad key `.' to the above escape sequence. Most likely, the VT100 is not being sent the escape sequence that turns on "alternate keypad mode", i.e., makes keypad keys send ESC , rather than digits, etc. This escape sequence is probably in the VT100 termcap entry, which the display code sends very early in Emacs initialization. If Emacs doesn't figure out early enough what sort of terminal it is dealing with, it won't send the VT100 initialization string. You might try using send-string-to-terminal to send the "turn on alternate keypad mode" escape sequence to the VT100, and see if this clears up the problem. Dale