X-Recipient: archive-cygwin AT delorie DOT 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 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 CC: 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> <4A1C5831 DOT 6030008 AT cornell DOT edu> <99716858969849F89D65A4015B9948F7 AT 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 AT cygwin DOT com; run by ezmlm List-Id: 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 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/