delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/28/13:11:07

X-Recipient: archive-cygwin AT delorie DOT 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 DOT 4020805 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> <4A1EA704 DOT 3040500 AT cornell DOT edu> <17393e3e0905280907s4cdf3c4ek9b8896dbba69cb48 AT mail DOT gmail DOT 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 DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
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

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

- Raw text -


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