X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.2 required=5.0	tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Andrew DeFaria <Andrew@DeFaria.com>
Subject: Re: Backspace
Date: Wed, 20 Jun 2012 17:06:55 -0700
Lines: 28
Message-ID: <jrtoj0$9kf$1@dough.gmane.org>
References: <jrsqk5$n02$1@dough.gmane.org> <4FE210E7.6070707@cygwin.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
In-Reply-To: <4FE210E7.6070707@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 6/20/2012 11:05 AM, Larry Hall (Cygwin) wrote:
> I see the same thing if I set stty erase (in bash) as you did and 
> start a new shell (bash again) from it.  Of course, the parent shell 
> outputs ^? for any press of backspace.  This behavior is the same for 
> bash started from a command prompt and from mintty.
An stty -a shows erase = ^h. Mintty is set to send ^h when the backspace 
character is pressed. At the bash command line backspace works as 
expected, the previous character is erased. However, if I do less <file> 
backspace does not behave properly or at least... Wait! I'm seeing 
something here.

I get this problem with Console - another, non-Cygwin terminal emulator 
and I see this problem with gnome-terminal. I don't see this problem 
with mintty.

Any idea of how to fix this for say gnome-terminal? Surely there are 
some out there who use regular Linux and gnome-terminal and ssh to 
Cygwin boxes...
> Beyond personal preference, is there a reason that you don't just take 
> the default (i.e. don't set stty erase)?  That works for me.
Ah, cause I want a backspace to backspace? :confused:

Stated differently, I want the backspace key to move backwards one space 
and to erase the previous character, like, for example, the less man 
page says it's supposed to.
-- 
Andrew DeFaria <http://defaria.com>
I took an IQ test and the results were negative.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

