delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/26/16:59:33

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_05,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-ID: <4A1C5831.6030008@cornell.edu>
Date: Tue, 26 May 2009 16:59:29 -0400
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: emacs -nw keypad
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>
In-Reply-To: <83bppfskbt.fsf@gnu.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 5/26/2009 4:03 PM, Eli Zaretskii wrote:
> It would really help me to see the result of typing "C-h l" after
> pressing the keypad keys, on Tim's machine, as I requested earlier
> in this thread.

I can't help you with Tim's machine, but I tried it on my own.  (I'm 
currently running emacs-23.0.94 in cygwin-1.7.)  It's clear that the 
keypad keys are not recognized as such when running emacs in rxvt or 
emacs -nw in an xterm.  The same thing happens in a third terminal that 
I tried, mintty.

In addition, emacs sees C-h as DEL in all three cases, so it isn't 
recognized as the help key.  I had to use F1 for help.

Here are the results.  First, for comparison, I ran emacs under X 
(without -nw).  With numlock on, I typed '123456' on the keypad, 
followed by C-h l.  The results were as expected:

	<kp-1> <kp-2> <kp-3> <kp-4> <kp-5> <kp-6> C-h l

Next, I tried the three terminals I mentioned above, typing '123456' on 
the keypad, followed by F1 l:

emacs -nw in xterm:   1 2 3 4 5 6 ESC O P l

emacs in rxvt-native:  1 2 3 4 5 6 ESC [ 1 1 ~ l

emacs in mintty:  1 2 3 4 5 6 ESC O P l

In the first and third cases, the environment variable TERM is xterm 
before starting emacs, and COLORMTERM isn't set.  In the second case, 
TERM=rxvt-cygwin-native and COLORTERM=rxvt-xpm.  In all cases, including 
the good case (emacs under X without -nw), TERM="dumb" within emacs, as 
shown by evaluating (getenv "TERM").

Ken

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019