X-Recipient: archive-cygwin@delorie.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.4020805@cornell.edu> 	 <2377ADF68DFE455199B53E97E5747E43@HEPNTLTIM3> 	 <4A1B17FD.902@dronecode.org.uk> <4A1BD971.70808@cornell.edu> 	 <83bppfskbt.fsf@gnu.org> <4A1C5831.6030008@cornell.edu> 	 <99716858969849F89D65A4015B9948F7@HEPNTLTIM3> 	 <4A1D52A9.3000409@cornell.edu>
Date: Wed, 27 May 2009 16:21:55 +0100
Message-ID: <416096c60905270821g143b5d15x3a6a3e8acb552f73@mail.gmail.com>
Subject: Re: emacs -nw keypad
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

