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 Date: Tue, 10 May 2005 17:17:45 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Strange-Dangerous behaviour in Cygwin Message-ID: <20050510151745.GN3375@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4280AF6A DOT 7010704 AT byu DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4280AF6A.7010704@byu.net> User-Agent: Mutt/1.4.2i On May 10 06:56, Eric Blake wrote: > According to Angelo Graziosi on 5/9/2005 1:50 PM: > > > > WHY an "xterm setup" if, as I wrote, the problems are present in standard > > bash shell, i.e. that launched with cygwin.bat. > > Chris apologized for misreading your email and misleading this > conversation: http://sources.redhat.com/ml/cygwin/2005-05/msg00393.html > > > > > I have reinstalled Cygwin, installing only the BASE category: NO "xterm", > > NO XORG, NO RXVT. ONLY BASE PACKAGES. > > > > The problems are PRESENT in any case!!! > > What are your stty settings? What gets sent to the terminal when you type > backspace? I have the following: > > $ [ctrl-v][backspace]^H[ctrl-c] > $ stty erase ^H > $ stty > speed 38400 baud; line = 0; > erase = ^H; > - -imaxbel > - -echoe -echok -echoctl -echoke > > To test that setting your stty erase character to the same as the > backspace character, try: > $ stty erase ^H > $ cat > foo # When all stty settings are correct, > y[backspace]n > [ctrl-d] > $ cat -A foo # then backspace consumes y before output appears > n$ > $ stty erase ^? # When the erase setting is wrong for the terminal, > $ cat > foo > y[backspace]n > [ctrl-d] > $ cat -A foo > y^Hn$ # the backspace appears on the output > > Now my question - why can't cygwin have sane defaults for the tty, so that > this question doesn't continue to pop up? What's a sane setting? When I open a standard bash console window, this simply doesn't happen. Is $TERM set to "cygwin"? That's the default setting and, as noted, backspace works as expected here. I tried it with `rm -i' but the file didn't get removed when entering "y\bn". So what? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/