X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 	tests=AWL,BAYES_00,J_CHICKENPOX_45,MISSING_HEADERS,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-ID: <4A1D52A9.3000409@cornell.edu>
Date: Wed, 27 May 2009 10:48:09 -0400
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
CC: cygwin@cygwin.com
Subject: Re: emacs -nw keypad
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>
In-Reply-To: <99716858969849F89D65A4015B9948F7@HEPNTLTIM3>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

On 5/26/2009 9:11 PM, Tim Adye wrote:
> In Cygwin 1.5 xterm (TERM=xterm), with "emacs -q -nw" (or also with "-f
> tpu-edt") I get
> 
> ESC [ > 1 ; 2 4 2 ; 0 c ESC O q ESC O r ESC O s ESC
> O t ESC O u ESC O v ESC O P l
> 
> The initial "ESC [ > 1 ; 2 4 2 ; 0 c" is just the response from xterm, asked
> for its version number (242). The "ESC O q" to "ESC O v" are the keypad
> "123456", but somehow with numlock on (perhaps this is a feature of my
> Exceed X-server). The "ESC O P l" is the "F1 l" at the end.
> 
> Despite the differences, it looks like neither of us is getting any
> interpretation of the keys.

As I understand the emacs documentation, the setting TERM=xterm should 
cause emacs to load term/xterm.el.  In 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.  So is this library failing to load for some reason?  Is 
there some initialization that emacs does (perhaps using the ncurses 
library) that overrides the setting of TERM?  I mentioned ncurses 
because that's something else that has been updated recently in the 
cygwin distribution.

Ken

P.S.  I said in an earlier email that, after starting emacs, TERM has 
the value "dumb".  This turns out to be irrelevant.  Emacs apparently 
does this for the benefit of subprocesses that it might start.

--
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/

