delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/31/05:13:22

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: <4A21B676.7080001@cornell.edu>
References: <4A1C9952 DOT 8040100 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> <83ws8042o2 DOT fsf AT gnu DOT org> <4A1FD2B7 DOT 90506 AT cornell DOT edu> <416096c60905290538t1989ba8cq4987a0197c2b61cd AT mail DOT gmail DOT com> <416096c60905291459y37ac57a2le64d451d8c5e640a AT mail DOT gmail DOT com> <20090530055318 DOT GA4569 AT ednor DOT casa DOT cgf DOT cx> <4A21B676 DOT 7080001 AT cornell DOT 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 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

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/

- Raw text -


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