delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/19/13:21:26

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 19 Dec 2003 13:21:12 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Hannu Koivisto <azure AT iki DOT fi>
cc: cygwin AT cygwin DOT com
Subject: Re: How to make Cygwin map backspace to ASCII DEL?
In-Reply-To: <87hdzxcfuj.fsf@lynx.tre-1.ionific.com>
Message-ID: <Pine.GSO.4.56.0312191306450.16993@slinky.cs.nyu.edu>
References: <87k74ucaj0 DOT fsf AT lynx DOT tre-1 DOT ionific DOT com> <Pine DOT GSO DOT 4 DOT 56 DOT 0312181518480 DOT 9804 AT slinky DOT cs DOT nyu DOT edu> <87hdzxcfuj DOT fsf AT lynx DOT tre-1 DOT ionific DOT com>
MIME-Version: 1.0

On Fri, 19 Dec 2003, Hannu Koivisto wrote:

> Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> writes:
>
> > "man stty"
>
> I'm well aware of the stty program.  I was going to add "please,
> don't suggest stty" to my original mail, but thought it might be
> somewhat impolite.
>
> If you are trying to imply that 'stty erase $(tput kbs)' (where
> tput kbs outputs ASCII DEL) would do what I want, you must have
> misread the question.

Yes, that's exactly what I meant to imply.  Without further description of
your problem, this is about as much advice as anyone can suggest.  FYI,
the terminfo database has changed a few times, and I'm not at all certain
that the 'kbs' value stayed intact.  On my system, 'tput kbs' prints ASCII
BS.

> It doesn't and I think it shouldn't.  Or is there some Cygwin specific
> extension in the stty program that does what I want?  I don't see
> anything in stty(1).

I still think 'stty' is what you want.  Another place to look is the shell
initialization files (e.g., the default /etc/profile has a bash-specific
section that issues 'stty erase ^?' -- has that section become
bash-specific recently?).

Alternatively, look at the CVS history of fhandler_console.cc in
winsup/cygwin.  That should tell you if anything changed WRT the character
produced by BackSpace.
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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