www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/30/19:55:07

From: pfister_ AT hotmail DOT com (jim crawford)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Video mode question
Date: Thu, 29 Oct 1998 02:17:45 GMT
Organization: CTS Network Services
Lines: 13
Message-ID: <3637cea9.8422913@news2.cts.com>
References: <36333E54 DOT A919B4AE AT yahoo DOT com>
NNTP-Posting-Host: wagasa.cts.com
X-Newsreader: Forte Free Agent 1.11/32.235
Cache-Post-Path: wagasa.cts.com!unknown AT putc5198042 DOT cts DOT com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>I have a question: let's say I fire up mode13h, I suppose the exact
>function doesn't really matter, and then try to print a string on screen
>using printf. How come I only see the string when I exit graphics mode
>again?

stdout is buffered under djgpp.  this means that output is only sent
when the buffer is full, or when your program quits.  use a
fflush(stdout); after your printf to force it, or setbuf(stdout,0); at
the beginning of your program.

-- 
pf / lightspeed / green grapes
i use hotmail.  don't hate me!

- Raw text -


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