This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: emacs -nw keypad, tpu-edt.el, and C-h


2009/5/30 Ken Brown:
> Now C-h and Backspace work as expected when I run emacs in a Cygwin console,
> provided I do stty erase ^? first. ÂAm 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]