Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 28 Nov 2003 18:50:27 +0300 (MSK)
From: "Andrey V. Lukyanov" <land@long.yar.ru>
To: cygwin@cygwin.com
Subject: stty erase
Message-ID: <Pine.LNX.4.44.0311281824060.1148-100000@long.yar.ru>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-NETIS-MailScanner-Information: Please contact NETIS Telecom for more information (+7 0852 797709)
X-NETIS-MailScanner: Found to be clean
X-NETIS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.2,
	required 5, AWL 0.00, BAYES_20 -2.60, USER_AGENT_PINE 0.00)
Note-from-DJ: This may be spam


I have just installed Cygwin on Windows XP.

Immediately I noticed the wrong behavior of the backspace key.

As it proved, it was caused by the fact that terminfo for cygwin defined

	kbs=^H

whereas /etc/profile had the line

	stty erase '^?'

I think it would be better to put this line in /etc/profile instead:

	stty erase `tput kbs`

Then the erase character will always match the backspace key ("kbs") in
current terminal description.






Regards


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

