delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Message-ID: | <1530-22003143022510989@M2W047.mail2web.com> |
X-Priority: | 3 |
Reply-To: | lhall AT rfk DOT com |
X-Originating-IP: | 209.113.174.244 |
From: | "lhall AT pop DOT ma DOT ultranet DOT com" <lhall AT pop DOT ma DOT ultranet DOT com> |
To: | edsinger AT ai DOT mit DOT edu, cygwin AT cygwin DOT com |
Subject: | RE: stdio on bash shell/emacs |
Date: | Thu, 30 Jan 2003 17:05:10 -0500 |
MIME-Version: | 1.0 |
X-OriginalArrivalTime: | 30 Jan 2003 22:05:11.0120 (UTC) FILETIME=[A8781500:01C2C8AB] |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id h0UM5Ug30921 |
Are you using the Cygwin version of emacs? If so, have you read the announcement? Did you follow the instructions about adding "tty" to the CYGWIN environment variable? You may want to review the information at www.cygwin.com/bugs.html so that future reports have baseline information on which readers here can base their responses. Larry Original Message: ----------------- From: Aaron Edsinger edsinger AT ai DOT mit DOT edu Date: Thu, 30 Jan 2003 16:59:59 -0500 To: cygwin AT cygwin DOT com Subject: stdio on bash shell/emacs hi. i've got a c program that works fine through cygwin bash. when i run it from emacs bash on windows, the stdio no longer works. after trolling around on the user groups, i found that using fflush(stdout) will allow a printf to work. however, a call to kbhit() only returns true on Ctrl-C. does anyone have any ideas about this. (here's the code:) int main(int argc, char* argv[]) { while( !kbhit() ) { printf("Hit me\n"); fflush(stdout); } printf( "\nKey struck was '%c'\n", _getch() ); fflush(stdout); return 0; } -thanks, aaron Aaron Edsinger Living Machines Group MIT Artificial Intelligence Lab 617.253.6532 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |