delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/28/14:57:06

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Fri, 28 Nov 2003 18:50:27 +0300 (MSK)
From: "Andrey V. Lukyanov" <land AT long DOT yar DOT ru>
To: cygwin AT cygwin DOT com
Subject: stty erase
Message-ID: <Pine.LNX.4.44.0311281824060.1148-100000@long.yar.ru>
MIME-Version: 1.0
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/

- Raw text -


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