Mail Archives: cygwin/2003/12/19/13:21:26
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 -