delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/29/06:35:53

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Date: Fri, 29 May 2009 13:35:41 +0300
From: Eli Zaretskii <eliz AT gnu DOT org>
Subject: Re: emacs -nw keypad, tpu-edt.el, and C-h
In-reply-to: <416096c60905280702m6e4cb748ic305be3592d81c70@mail.gmail.com>
To: cygwin AT cygwin DOT com
Message-id: <83ws8042o2.fsf@gnu.org>
MIME-version: 1.0
References: <4A168F2B DOT 4020805 AT cornell DOT edu> <4A1BD971 DOT 70808 AT cornell DOT edu> <83bppfskbt DOT fsf AT gnu DOT org> <4A1C5831 DOT 6030008 AT cornell DOT edu> <99716858969849F89D65A4015B9948F7 AT HEPNTLTIM3> <4A1C9952 DOT 8040100 AT cornell DOT edu> <AECBDC9D8B31450CA07DD85A423AD033 AT dc DOT pp DOT rl DOT ac DOT uk> <4A1D9D05 DOT 40407 AT cornell DOT edu> <838wkhsm5e DOT fsf AT gnu DOT org> <4A1E7C50 DOT 8020505 AT cornell DOT edu> <416096c60905280702m6e4cb748ic305be3592d81c70 AT mail DOT gmail DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

> Date: Thu, 28 May 2009 15:02:35 +0100
> From: Andy Koppe <andy dor koppe at gmail.com>
> 
> Ken Brown:
> > A separate issue that has arisen in this thread is that when emacs runs
> > in a cygwin terminal [*], it sees C-h as DEL instead of as the help key.
> > Can someone familiar with cygwin terminals help with this?  I'm speculating
> > again (bad habit), but it seems that the keycodes are being processed before
> > they reach emacs, so that C-h becomes indistinguishable from the Backspace
> > key.
> 
> Careful, you're straying into a pseudo-religious warzone here. :)
> 
> There's an ancient and pointless argument about whether the Backspace
> key should send ^H (0x08) or ^? (0x7F).

Actually, this holy war can be bypassed, without sacrificing Emacs
correctly working on a console.  What the console should send for that
is the <Backspace> function key.  Emacs already takes care of
converting this to DEL.  The following is from a native Windows build
of Emacs 23 running under -nw in the Windows standard "Command Prompt"
window:

  DEL (translated from <backspace>) runs the command delete-backward-char

This message was caused by typing "C-h c" and then pressing the
backspace key.

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