delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/14/23:07:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
From: ericblake AT comcast DOT net (Eric Blake)
To: Angelo Graziosi <Angelo DOT Graziosi AT roma1 DOT infn DOT it>, cygwin AT cygwin DOT com
Subject: Re: Strange-Dangerous behaviour in Cygwin (and/or RXVT)
Date: Sun, 15 May 2005 03:06:36 +0000
Message-Id: <051520050306.27988.4286BCBC0005729D00006D5422007614380A050E040D0C079D0A@comcast.net>
X-Authenticated-Sender: ZXJpY2JsYWtlQGNvbWNhc3QubmV0

> I have tried your code "stty erase ^H" in .bash_profile and as I thinked
> it works for standard bash shell and xterm BUT NOT for RXVT in which, now,
> BKSPACE is dead. In others words RXVT wants "stty erase ^?" as in
> /etc/profile.

The trick is to set `stty erase' to whatever your current shell outputs when
you type [ctrl-v][backspace].  As has been pointed out, stty defaults to ^H
as the erase character, and the stock distributions of the cygwin, rxvt, and
xterm terminals likewise default to ^H for backspace with no additional
modifications.  With both rxvt and xterm (but not the cygwin terminal), it is
possible to change backspace to output ^? instead of ^H, and it appears
that somehow you have swapped rxvt to use ^?.  Rxvt is also annoying in
that it defaults $TERM to xterm, instead of the more accurate $TERM of
rxvt, which makes a case statement on $TERM difficult if rxvt and xterm can't
agree on which character is printed on backspace.  Pick the shell you like
most and stick with it, rather than trying to bounce between all three, then
you will only have to get your stty settings correct once.

> I remain in the opinion that some recents upgrades have changed something
> (env. var., dlls) in cygwin conf.. Previously, also with this /etc/profile
> (3.2-1, 3.1-4, 3.0-1) with "stty erase ^?" all worked fine.
> 
> For example, termcap upgrade (Apr 22) can have some influence?
> Or the rxvt package itself (Apr 10)?

I don't know what caused your change, but I am not seeing it with the
latest and greatest of all packages from cygwin.  See if your ~/.Xdefaults
has a line about Rxvt*backspacekey.  If it does, you can delete it, or
change it to one of:
# Cygwin default of ^H
Rxvt*backspacekey: \008
# Alternate, backspace is ^?
Rxvt*backspacekey: \177

--
Eric Blake



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