delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/05/17:30:07

From: Chris Yewchuk <cyewchuk AT calum DOT csclub DOT uwaterloo DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Text Output Problem..
Date: Mon, 05 Oct 1998 17:33:50 -0400
Organization: ICAN.Net Customer
Lines: 24
Message-ID: <36193B3E.1F87173A@csclub.uwaterloo.ca>
NNTP-Posting-Host: ppp-102.m2-18.tor.ican.net
Mime-Version: 1.0
X-Mailer: Mozilla 4.04 [en] (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I've just started using DJGPP, so please excuse my ignorance!

I have written a program that prints some text to the screen, enters
mode 13h, waits for a getch(), goes back into text mode, prints some
more text, waits for another getch() and then terminates.

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
there is no text until the end of the program, at which time all the
text that was supposed to be displayed throughou the program is dumped
as one long string.

Has anyone encountered this before?  I'm tried using printf and cout for
printing to stdout.  Am i doing something wrong?

Thanx in advance for any help..

Chris Yewchuk
2B Computer Science
University of Waterloo,
Waterloo, Ontario, Canada


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019