www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
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 |
Message-ID: | <496ECD29.8010804@gmail.com> |
Date: | Thu, 15 Jan 2009 05:44:09 +0000 |
From: | Andy Koppe <andy DOT koppe AT gmail DOT com> |
User-Agent: | Thunderbird 2.0.0.18 (Windows/20081105) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | console vs pty (was: Re: First Pass at mintty documentation; etc.) |
References: | <496A5EDE DOT 9010204 AT veritech DOT com> <496A7038 DOT 402 AT gmail DOT com> <496B7C25 DOT 3090705 AT veritech DOT com> <496E528D DOT 1090801 AT gmail DOT com> <496E7E4F DOT 6060706 AT gmail DOT com> |
In-Reply-To: | <496E7E4F.6060706@gmail.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
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 <stdio.h> > 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |