Mail Archives: djgpp/2000/12/01/21:21:35
"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> wrote in message
news:2593-Fri01Dec2000170725+0200-eliz AT is DOT elta DOT co DOT il...
> > During previous post I used to get coloured bars flickering up and down
the
> > screen until I quit out normally. Then to get text back I'd have to
issue a
> > 'mode co80' command. Now I have rewritten it I just get a blank screen
> > without any text any flickering or anything - just blank. Without
rewriting
> > the entirety of the function for me, any pointers?
>
> 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. And the ones at the bottom are things like scores and have
been commented out (so to save space I left them out).
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?
If you would like me to mail you the source, I could do that (I understand
that you aren't a debugging service), and to post more source would just be
an eyesore, since a lot of is repetitive switch/case statements.
--
Stay Lucky, Graham "Mournblade" Reeds.
ICQ No.: 30514803
http://homepage.dtn.ntl.com/grahamr
- Raw text -