X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Thu, 21 Jun 2012 11:07:38 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Backspace
Message-ID: <20120621090738.GA26102@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <jrsqk5$n02$1@dough.gmane.org> <4FE210E7.6070707@cygwin.com> <jrtoj0$9kf$1@dough.gmane.org> <4FE28162.7040106@cygwin.com> <jruba0$pvd$1@dough.gmane.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <jruba0$pvd$1@dough.gmane.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
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 Jun 20 22:26, Andrew DeFaria wrote:
> On 06/20/2012 07:05 PM, Larry Hall (Cygwin) wrote:
> >>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.
> I'm not trying to be obtuse. I just want backspace to do a backspace.
> >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.
> Makes sense.
> >This makes me think that maybe you have erase set to ^H somewhere?
> Yes, I set it in my ~/.bashrc. Because I believe that big backspace
> key that I love to hit sent C-h.
> >What does your .minttyrc look like?
> As I said before "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". As such I'm not sure how .minttyrc applies here...
> >Other resource files?
> Which would you like?
> 
> I think you missed the part where I said "I don't see this problem
> with mintty". I see the problem when I use Console (
> http://sourceforge.net/projects/console/) a non-cygwin terminal
> emulator that I use because it handle's Windows /dev/conin and
> /dev/conout better than Cygwin. I also see this problem when I use
> my home Ubuntu system's gnome-terminal coupled with an ssh to Cygwin
> running in a Windows 7 VM in my LAN.
> 
> I found where I can tell gnome-terminal to use C-h for backspace.
> Thanks - that problem is solved. I need to talk to the developer of
> Console to ask him about why Console was not honoring it's
> "Backspace == Control-H setting". And how he handles /dev/conin &
> conout so that perhaps mintty could be made better (Basically
> Windows programs like say cleartool and ActiveState Perl work with
> Console - i.e. typing cleartool will show you the cleartool problem.
> I think he's running a hidden cmd shell... anyways)

I'm not quite sure what you're trying to accomplish by enforcing ^H.
The Cygwin console as well as mintty, the Linux console or any X terminal
emulation I'm aware of default to ^? to be generated by the backspace
key, and stty erase is by default set to ^? as well, usually.  Why don't
you just use the default?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

