delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/10/08:56:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <4280AF6A.7010704@byu.net>
Date: Tue, 10 May 2005 06:56:10 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: Angelo Graziosi <Angelo DOT Graziosi AT roma1 DOT infn DOT it>
CC: cygwin AT cygwin DOT com
Subject: Re: Strange-Dangerous behaviour in Cygwin
References: <Pine DOT OSF DOT 4 DOT 21 DOT 0505092139540 DOT 25397-100000 AT ax0rm1 DOT roma1 DOT infn DOT it>
In-Reply-To: <Pine.OSF.4.21.0505092139540.25397-100000@ax0rm1.roma1.infn.it>
X-IsSubscribed: yes

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCgK9p84KuGfSFAYARAtcdAJ9p1rYwYEpyGQXPuRN/FSt7sCAysQCg0WIb
hR75DFDONfGsqHr6GAYxS4k=
=Wjqq
-----END PGP SIGNATURE-----

--
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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019