This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to make Cygwin map backspace to ASCII DEL?


On Fri, 19 Dec 2003, Hannu Koivisto wrote:

> Igor Pechtchanski <pechtcha@cs.nyu.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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]