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: <2593-Fri01Dec2000170725+0200-eliz AT is DOT elta DOT co DOT il> 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