delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/13/09:07:05

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 13 Jan 2010 15:06:42 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Tried out cygwin-inst-20100111.tar.bz2
Message-ID: <20100113140642.GZ14511@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <COL102-W462D97538DD6B7BAA121D5B56C0 AT phx DOT gbl> <20100112164834 DOT GV14511 AT calimero DOT vinschen DOT de> <COL102-W52DB3A5D272B9E630D808EB56C0 AT phx DOT gbl> <20100113110729 DOT GX14511 AT calimero DOT vinschen DOT de> <4B4DCB0C DOT 9040402 AT byu DOT net>
MIME-Version: 1.0
In-Reply-To: <4B4DCB0C.9040402@byu.net>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

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

- Raw text -


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