From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 604 invoked by alias); 15 Jan 2009 05:44:09 -0000 Received: (qmail 593 invoked by uid 22791); 15 Jan 2009 05:44:08 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_51,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Jan 2009 05:43:28 +0000 Received: by ug-out-1314.google.com with SMTP id 36so625680uga.17 for ; Wed, 14 Jan 2009 21:43:25 -0800 (PST) Received: by 10.67.24.13 with SMTP id b13mr3043352ugj.25.1231998205159; Wed, 14 Jan 2009 21:43:25 -0800 (PST) Received: from ?192.168.0.5? (92-235-183-122.cable.ubr18.sgyl.blueyonder.co.uk [92.235.183.122]) by mx.google.com with ESMTPS id q40sm834632ugc.1.2009.01.14.21.43.23 (version=SSLv3 cipher=RC4-MD5); Wed, 14 Jan 2009 21:43:24 -0800 (PST) Message-ID: <496ECD29.8010804@gmail.com> Date: Thu, 15 Jan 2009 06:03:00 -0000 From: Andy Koppe User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: cygwin@cygwin.com Subject: console vs pty (was: Re: First Pass at mintty documentation; etc.) References: <496A5EDE.9010204@veritech.com> <496A7038.402@gmail.com> <496B7C25.3090705@veritech.com> <496E528D.1090801@gmail.com> <496E7E4F.6060706@gmail.com> In-Reply-To: <496E7E4F.6060706@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2009-01/txt/msg00456.txt.bz2 Chuck Wilson wrote: > "full screen" or "DOS" is a red herring. Any program that does something > like the following, if compiled as a native program, won't work in rxvt > (or MinTTY, or cygwin/cmd-shell-with-CYGWIN=tty): > > #include > main() { > int c; > while ((c = getc(stdin)) != EOF) fputc(c, stdout); > } > > The thing is, THIS program works as part of a pipeline even when > compiled as a native program -- but it breaks if you try to use it > interactively within rxvt/MinTTY/etc. A cygwin-compiled version works > in all cases. I see, thanks for explaining that. What exactly does happen when calling read() that means that pty input doesn't reach the program? Andy -- 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/