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> <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 To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 >> 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/