This is the mail archive of the cygwin 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: Strange-Dangerous behaviour in Cygwin


-----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@byu.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/


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