This is the mail archive of the
mailing list for the Cygwin project.
Re: How to make Cygwin map backspace to ASCII DEL?
On Fri, 19 Dec 2003, Hannu Koivisto wrote:
> Igor Pechtchanski <email@example.com> 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
> 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
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.
|\ _,,,---,,_ firstname.lastname@example.org
ZZZzz /,`.-'`' -. ;-;;,_ email@example.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