Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: cygwin AT cygwin DOT com To: Hannu Koivisto 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: References: <87k74ucaj0 DOT fsf AT lynx DOT tre-1 DOT ionific DOT com> <87hdzxcfuj DOT fsf AT lynx DOT tre-1 DOT ionific DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 19 Dec 2003, Hannu Koivisto wrote: > Igor Pechtchanski 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/