From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21927 invoked by alias); 10 May 2011 22:17:11 -0000 Received: (qmail 21917 invoked by uid 22791); 10 May 2011 22:17:10 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from nm4-vm0.bullet.mail.sp2.yahoo.com (HELO nm4-vm0.bullet.mail.sp2.yahoo.com) (98.139.91.190) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Tue, 10 May 2011 22:16:56 +0000 Received: from [98.139.91.61] by nm4.bullet.mail.sp2.yahoo.com with NNFMP; 10 May 2011 22:16:55 -0000 Received: from [98.136.185.45] by tm1.bullet.mail.sp2.yahoo.com with NNFMP; 10 May 2011 22:16:55 -0000 Received: from [127.0.0.1] by smtp106.mail.gq1.yahoo.com with NNFMP; 10 May 2011 22:16:55 -0000 Received: from cgf.cx (cgf@173.76.56.127 with login) by smtp106.mail.gq1.yahoo.com with SMTP; 10 May 2011 15:16:55 -0700 PDT X-Yahoo-SMTP: jenXL62swBAWhMTL3wnej93oaS0ClBQOAKs8jbEbx_o- Received: from localhost (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 8B1124A801A for ; Tue, 10 May 2011 18:16:54 -0400 (EDT) Date: Tue, 10 May 2011 22:17:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: Who's using "CYGWIN=tty" and why? Message-ID: <20110510221654.GA15744@ednor.casa.cgf.cx> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20110509161028.GJ27739@calimero.vinschen.de> <0105D5C1E0353146B1B222348B0411A209E8030CB9@NIHMLBX02.nih.gov> <20110510171846.GA27537@ednor.casa.cgf.cx> <0105D5C1E0353146B1B222348B0411A209E8030CCE@NIHMLBX02.nih.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0105D5C1E0353146B1B222348B0411A209E8030CCE@NIHMLBX02.nih.gov> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-05/txt/msg00142.txt.bz2 On Tue, May 10, 2011 at 06:11:35PM -0400, Buchbinder, Barry (NIH/NIAID) [E] wrote: >Christopher Faylor sent the following at Tuesday, May 10, 2011 1:19 PM >>If we changed the /dev/console to /dev/consN (where N is a unique number >>for each console window) would that address your use case? > >Yes, it works for me if there would be a reasonably small (preferably >single digit) number in the output of tty or ps. Yep. That is the plan. >>You would not be able to do something like echo foo >/dev/cons4 and have >>foo be echoed another console window though. > >Since I haven't been on a real Unix/POSIX machine since the late '80s, >I'd forgotten about that. Now you made me want to DO it! :-) Heh. I knew I shouldn't have mentioned it. This was actually one of the first things that impressed me about Cygwin when I first started using it. Of course, when I first started it only worked about half the time, but still... The way I'm implementing this you should be able if /dev/consN is actually associated with a console but you won't be able to do anything other than verify existence. >>Eliminating the special case of tty handling >>would simplify the cygwin pty layer, shrink the size of the DLL, and >>generally make Cygwin a little easier to maintain. > >Even if you don't accommodate me, that's OK, if your lives will be >easier. As I wrote, if I find that I really miss tty identification, >I can learn to use mintty. (Or maybe I should just switch - but not >today.) I actually have the /dev/cons about 3/4 finished. If we do decide to get rid of CYGWIN=tty then /dev/cons may become /dev/tty again and ptys will become /dev/pty. cgf -- 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