X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 13 Jan 2010 15:06:42 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Tried out cygwin-inst-20100111.tar.bz2
Message-ID: <20100113140642.GZ14511@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <COL102-W462D97538DD6B7BAA121D5B56C0@phx.gbl>  <20100112164834.GV14511@calimero.vinschen.de>  <COL102-W52DB3A5D272B9E630D808EB56C0@phx.gbl>  <20100113110729.GX14511@calimero.vinschen.de>  <4B4DCB0C.9040402@byu.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4B4DCB0C.9040402@byu.net>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Jan 13 06:30, Eric Blake wrote:
> According to Corinna Vinschen on 1/13/2010 4:07 AM:
> > That only occurs in CYGWIN=tty mode.  The problem was that in tty mode a
> > piece of code reset all termios settings of the console to 0.  That was
> > no problem so far, but now that the VERASE key from the termios settings
> > is used to delete chars in the console, it hurt.  I fixed that in CVS.
> 
> While you're at it, how hard would it be to implement the O_TTY_INIT flag
> for open() on a tty, documented as setting termios to its default
> conforming state?

IIU the SUSv4 description C, and given that a newly opened console is
always setup with the default termios settings anyway, we could simply
set O_TTY_INIT to 0 and be done with it:

  If path identifies a terminal device other than a pseudo-terminal, the
  device is not already open in any process, and either O_TTY_INIT is
  set in oflag or O_TTY_INIT has the value zero, open() shall set any
  non-standard termios structure terminal parameters to a state that
  provides conforming behavior.

Right?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

