www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/04/02:36:44.1

From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Buffering text...
Date: 4 Dec 2000 05:57:49 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 16
Message-ID: <90fbot$rds$1@antares.lu.erisoft.se>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1001129114636 DOT 10519Q-100000 AT is> <xhMV5.3698$0z DOT 50352 AT news2-win DOT server DOT ntlworld DOT com> <2593-Fri01Dec2000170725+0200-eliz AT is DOT elta DOT co DOT il> <uWYV5.5346$0z DOT 87309 AT news2-win DOT server DOT ntlworld DOT com>
NNTP-Posting-Host: lws256.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Graham Reeds (grahamr AT dtn DOT ntl DOT com) wrote:
: I put '\r\n' inside each of the cprintf(), and hey presto! - one long line
: of darkgrey periods punctuated every now and then by coloured letters. Seems
: like the cprintf() doesn't buffer (correct terminology?) the text until the
: '\r\n' arrives at the end of the loop.  Removing the '\n' stops all apart
: from output apart from text that is issued from within another module with
: printf() - and that is coloured darkgrey.  I've tried changing colour and
: using just printf() but that don't work, so why does it work when it is
: exiting?

Mixing cprintf() and printf() doesn't work well.


Right,

						MartinS

- Raw text -


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