delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/01/21:21:35

From: "Graham Reeds" <grahamr AT dtn DOT ntl DOT com>
Newsgroups: comp.os.msdos.djgpp
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>
Subject: Re: Buffering text...
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <uWYV5.5346$0z.87309@news2-win.server.ntlworld.com>
Date: Sat, 2 Dec 2000 02:13:02 -0000
NNTP-Posting-Host: 62.254.76.97
X-Complaints-To: abuse AT ntlworld DOT com
X-Trace: news2-win.server.ntlworld.com 975723290 62.254.76.97 (Sat, 02 Dec 2000 02:14:50 GMT)
NNTP-Posting-Date: Sat, 02 Dec 2000 02:14:50 GMT
Organization: ntlworld News Service
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"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 -


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