X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_45,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4A1D52A9.3000409@cornell.edu> References: <4A168F2B DOT 4020805 AT cornell DOT edu> <2377ADF68DFE455199B53E97E5747E43 AT HEPNTLTIM3> <4A1B17FD DOT 902 AT dronecode DOT org DOT uk> <4A1BD971 DOT 70808 AT cornell DOT edu> <83bppfskbt DOT fsf AT gnu DOT org> <4A1C5831 DOT 6030008 AT cornell DOT edu> <99716858969849F89D65A4015B9948F7 AT HEPNTLTIM3> <4A1D52A9 DOT 3000409 AT cornell DOT edu> Date: Wed, 27 May 2009 16:21:55 +0100 Message-ID: <416096c60905270821g143b5d15x3a6a3e8acb552f73@mail.gmail.com> Subject: Re: emacs -nw keypad From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com > As I understand the emacs documentation, the setting TERM=3Dxterm should = cause > emacs to load term/xterm.el. =C2=A0In that file I find lines like > > (define-key map "\eOq" [kp-1]) > (define-key map "\eOr" [kp-2]) > > This looks like the place where emacs should learn to interpret the keypad > keys. xterm doesn't send those keycodes in its default configuration with "PC-style Function Keys". Instead, with NumLock off, the numpad keys send the same codes as the equivalent keys on the small cursor and editing pads, so e.g. 1 (End) sends ^[OF. See here for details: http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#PC-Style%20Function%= 20Keys Andy -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/