X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 	tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <17393e3e0905280907s4cdf3c4ek9b8896dbba69cb48@mail.gmail.com>
References: <4A168F2B.4020805@cornell.edu> 	 <99716858969849F89D65A4015B9948F7@HEPNTLTIM3> 	 <4A1C9952.8040100@cornell.edu> 	 <AECBDC9D8B31450CA07DD85A423AD033@dc.pp.rl.ac.uk> 	 <4A1D9D05.40407@cornell.edu> <838wkhsm5e.fsf@gnu.org> 	 <4A1E7C50.8020505@cornell.edu> 	 <416096c60905280702m6e4cb748ic305be3592d81c70@mail.gmail.com> 	 <4A1EA704.3040500@cornell.edu> 	 <17393e3e0905280907s4cdf3c4ek9b8896dbba69cb48@mail.gmail.com>
Date: Thu, 28 May 2009 18:10:51 +0100
Message-ID: <416096c60905281010t7538d5c5secacd14b87139b86@mail.gmail.com>
Subject: Re: emacs -nw keypad, tpu-edt.el, and C-h
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

>> Can cygwin terminals be
>> configured so that emacs can tell the difference between the Backspace k=
ey
>> and "pressing h while holding down the control key"?
>
> "pressing h while holding down the control key" produces ^H (0x08).
> By default, this is also what backspace sends. =C2=A0As Andy says, many
> (all?) cygwin terminals can be set up to send ^? (0x7F) instead,
> leaving ^H to only be used by Ctrl+H

Yep. And here's how to change the backspace keycode in the various
Cygwin terminals:

rxvt: invoke with -backspacekey DEC
xterm: invoke with -xrm "*backarrowKey:false" (or untick "Backarrow
Key" in the "Main Options" menu)
mintty: Choose ^? as backspace keycode on the "Keys" page of the options

As far as I know, it can't be changed in the Cygwin console,
presumably because Windows sends ^H for backspace to applications
running in the console.

Could the default for the terminals be changed? Yes, easily, but only
at the cost of breaking any applications that always expect ^H for
Backspace.

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/

