From: "Matthew Conte" Newsgroups: comp.os.msdos.djgpp References: <36193B3E DOT 1F87173A AT csclub DOT uwaterloo DOT ca> Subject: Re: Text Output Problem.. Lines: 16 X-Newsreader: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Message-ID: Date: Mon, 5 Oct 1998 21:56:54 -0400 NNTP-Posting-Host: 24.92.55.44 X-Complaints-To: abuse AT nycap DOT rr DOT com X-Trace: proxye1.nycap.rr.com 907638990 24.92.55.44 (Mon, 05 Oct 1998 21:56:30 EDT) NNTP-Posting-Date: Mon, 05 Oct 1998 21:56:30 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Chris Yewchuk wrote in message <36193B3E DOT 1F87173A AT csclub DOT uwaterloo DOT ca>... >I've just started using DJGPP, so please excuse my ignorance! [...] >The problem is that no text is printed to the screen until the program >terminates. Almost like there is an output buffer that isn't being >flushed until the program terminates. The getch()'s work okay, but Exactly right- there is an output buffer that isn't being flushed. Add "\n" or endl to your printf() or cout's (respectively), or fflush() them. This is addressed in the djgpp FAQ. Later, Matt.