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 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: <20100112164834 DOT GV14511 AT calimero DOT vinschen DOT de> <20100113110729 DOT GX14511 AT calimero DOT vinschen DOT de> <4B4DCB0C DOT 9040402 AT byu DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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