Article View: gnu.emacs.bug
Article #87232[19.27] function key and keypad support for TTYs
From: Ulrich Mueller
Date: Wed, 05 Oct 1994 11:29
Date: Wed, 05 Oct 1994 11:29
37 lines
2127 bytes
2127 bytes
In GNU Emacs 19.27.1 (mips-dec-ultrix4.3) of Thu Sep 15 1994 on vsnhd1
I am not sure if the following are really bugs, or just flaws in the
documentation.
1) Under X, the keypad keys are by default translated to ordinary
typing keys via function-key-map (this is set up at the end of
simple.el). If I type ``[kp-0]'' I get ``0''.
If I type the same key on a TTY (vt200), I get a beep.
``C-h k [kp-0]'' says ``kp-0 is undefined''. This happens because
``[kp-0]'' itself is translated from some ESC sequence that was sent
by the terminal, and it seems that the translation by function-key-map
is done only once.
2) The documentation in the Lisp Manual (edition 2.3) says
* `key-translation-map' goes to work after `function-key-map' is
finished; it receives the results of translation by
`function-key-map'.
So I have tried to put a translation for ``[kp-0]'' into
key-translation-map:
emacs -q RET
(setq key-translation-map (make-sparse-keymap)) LFD
(define-key key-translation-map [kp-0] "0") LFD
But on a TTY this has no influence: the key remains undefined.
3) ``[f11]'' is supposed to be the ESC key. If I type it twice, the
command eval-expression is called, but some additional garbage is put
into the minibuffer. A similar thing happens for ``C-x ESC ESC''.
--
Ulrich Mueller Div. PPE, CERN, CH-1211 Geneva 23
ulm@vsnhd1.cern.ch http://vsnhd1.cern.ch/people/ulm.html
Technical Details
Message-ID:
<9410051127.AA04869@vsnhd2.cern.ch>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!uunet!cs.utexas.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!vsnhd2.cern.ch!ulmShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,dff8acb240aecee4,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-10-05 08:46:11 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!uunet!cs.utexas.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!vsnhd2.cern.ch!ulm From: ulm@vsnhd2.cern.ch (Ulrich Mueller) Newsgroups: gnu.emacs.bug Subject: [19.27] function key and keypad support for TTYs Date: 5 Oct 1994 07:29:05 -0400 Organization: GNUs Not Usenet Lines: 37 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <9410051127.AA04869@vsnhd2.cern.ch>