delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/06/20/22:06:27

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.7 required=5.0 tests=AWL,BAYES_00,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-id: <4FE28162.7040106@cygwin.com>
Date: Wed, 20 Jun 2012 22:05:22 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Backspace
References: <jrsqk5$n02$1 AT dough DOT gmane DOT org> <4FE210E7 DOT 6070707 AT cygwin DOT com> <jrtoj0$9kf$1 AT dough DOT gmane DOT org>
In-reply-to: <jrtoj0$9kf$1@dough.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

On 6/20/2012 8:06 PM, Andrew DeFaria wrote:
> 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.

Now methinks you're just being obtuse.

Let me restate what I see in my environment.  Erase is set as ^? but I
didn't set it anywhere.  So to my way of thinking, this is the default.
This makes me think that maybe you have erase set to ^H somewhere?  What
does your .minttyrc look like?  Other resource files?  That's my thought
for what it's worth.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

- Raw text -


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