delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/10/21:54:15

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
Date: Tue, 10 May 2005 18:47:27 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Strange-Dangerous behaviour in Cygwin [ATTN base-file maintainer]
Message-ID: <20050510164727.GO3375@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <051020051547 DOT 6892 DOT 4280D77E000CE20C00001AEC22007503300A050E040D0C079D0A AT comcast DOT net>
Mime-Version: 1.0
In-Reply-To: <051020051547.6892.4280D77E000CE20C00001AEC22007503300A050E040D0C079D0A@comcast.net>
User-Agent: Mutt/1.4.2i

On May 10 15:47, Eric Blake wrote:
> /etc/profile (actually etc/defaults/etc/profile) needs to be updated like so, to match the current default behavior of the cygwin terminal settings:
> 
> --- /etc/defaults/etc/profile.orig      2005-03-25 08:50:00.003125000 -0700
> +++ /etc/defaults/etc/profile1  2005-05-10 09:40:05.474375000 -0600
> @@ -1,4 +1,4 @@
> -# base-files version 3.2-1
> +# base-files version 3.2-1 -*- sh -*-
>  
>  # WARNING
>  #
> @@ -101,7 +101,12 @@
>  $ '
>  
>         if tty --quiet ; then
> -               stty erase '^?'
> +               case "$TERM" in
> +                   cygwin ) stty erase ^H ;;
> +                   xterm* | rxvt* ) stty erase '^?' ;;
> +                   * ) # unknown terminal type, don't set erase
> +                       ;;
> +               esac
>         fi
>         ;;
>  ksh*     | -ksh*     | */ksh* | \

Can anybody tell me what the `stty erase' setting is good for in
/etc/profile?  I'm using tcsh, so I'm not bothered by this stuff, but
setting it looks entirely unnecessary.  The stty settings are fine
automatically if you don't set them, in the Cygwin console as well as
in rxvt.


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/

- Raw text -


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