Mail Archives: djgpp/2000/12/02/03:45:27
> From: "Graham Reeds" <grahamr AT dtn DOT ntl DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Sat, 2 Dec 2000 02:13:02 -0000
> >
> > I don't see anything wrong in the code you posted. So either the
> > problem is with the parts that you omitted, or the offending code is
> > not in this function.
>
> Well the omitted parts are repetitive case statements very similar to the
> ones I left in.
I meant something that is outside this function.
> 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.
You mean, `cprintf' _buffers_ text and doesn't output it until you
send "\r\n"?
That would be weird: `cprintf' doesn't do any buffering at all, it
should output everything immediately. Hmm. The only case where the
screen might not be updated immediately is on Far-Eastern DOS
versions. But that's not your case, right?
What happens if you use `cputc' to output each character, instead of
`cprintf'?
- Raw text -