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: <4A21B676.7080001@cornell.edu>
References: <4A1C9952.8040100@cornell.edu> <838wkhsm5e.fsf@gnu.org> 	 <4A1E7C50.8020505@cornell.edu> 	 <416096c60905280702m6e4cb748ic305be3592d81c70@mail.gmail.com> 	 <83ws8042o2.fsf@gnu.org> <4A1FD2B7.90506@cornell.edu> 	 <416096c60905290538t1989ba8cq4987a0197c2b61cd@mail.gmail.com> 	 <416096c60905291459y37ac57a2le64d451d8c5e640a@mail.gmail.com> 	 <20090530055318.GA4569@ednor.casa.cgf.cx> 	 <4A21B676.7080001@cornell.edu>
Date: Sun, 31 May 2009 10:13:00 +0100
Message-ID: <416096c60905310213u793baa7v4121692e339a8872@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

2009/5/30 Ken Brown:
> Now C-h and Backspace work as expected when I run emacs in a Cygwin conso=
le,
> provided I do stty erase ^? first. =C2=A0Am I right in assuming that this=
 won't
> be necessary once the termios default is changed?

Yep.


2009/5/30 Matt Wozniski:
> On Debian, at least, the console sends ^H for Ctrl+Backspace and ^?
> for Backspace; that is a pretty common convention among terminal
> emulators that I've used. I vote against the ^_ suggestion; I for one
> would be genuinely surprised by that.

Fair enough, but once you're over the surprise you might actually find
it useful to tell Ctrl+Backspace from Ctrl+H. Also, having
Ctrl+Backspace bring up the help in emacs is rather surprising too.

Finally, the suggestion of ^_ follows the pattern that the Ctrl
modifier masks off all but the lowest 5 bits of the unmodified
character code, i.e.:

Ctrl+A -> 0x41 & 0x1F -> 0x01 (^A)
Ctrl+Space -> 0x20 & 0x1F -> 0x00 (^@)
Ctrl+Backspace -> 0x7F & 0x1F -> 0x1F (^_)

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/

