www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/28/12:32:40

From: "Graham Reeds" <grahamr AT dtn DOT ntl DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1001126130620 DOT 4375B-100000 AT is> <ZyeU5.13957$vA4 DOT 255725 AT news6-win DOT server DOT ntlworld DOT com> <7458-Sun26Nov2000234219+0200-eliz AT is DOT elta DOT co DOT il>
Subject: Re: Buffering text...
Lines: 66
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: <MAQU5.18146$ea7.362305@news2-win.server.ntlworld.com>
Date: Tue, 28 Nov 2000 15:56:07 -0000
NNTP-Posting-Host: 62.254.78.161
X-Complaints-To: abuse AT ntlworld DOT com
X-Trace: news2-win.server.ntlworld.com 975426988 62.254.78.161 (Tue, 28 Nov 2000 15:56:28 GMT)
NNTP-Posting-Date: Tue, 28 Nov 2000 15:56:28 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:7458-Sun26Nov2000234219+0200-eliz AT is DOT elta DOT co DOT il...

> I announced a couple of weeks ago that djdoc203.zip is available from
> SimTel.NET mirrors.  There you will find the v2.03 library docs in
> HTML format (I understand that this is the reference you are using).
>
> Of course, djdev203.zip comes with an updated v2.03 libc reference in
> Info format, so you could use that.  (There were many improvements in
> the docs between v2.02 and 2.03, so you miss a lot by using the old
> documentation.)

Okay - cool.  I've got that now - I fairly infrequently visit this place
(sorry).

> Sorry, I don't understand what you are trying to tell here.  I think
> it will be much easier to talk and help you if you post a short code
> fragment where you have this kind of problems, and explain what you
> want it to do and what it actually does.

Okay here's the actual fragment:

...
    for (x=0; x<PLAYAREA_WIDTH; x++)
      {
      switch (ucPlayArea[x][y])
        {
        case NO_BLOCKPIECE:
//          textcolor(WHITE);
          printf(".");
          break;
        case STRAIGHT:
//          textcolor(LIGHTRED);
          printf("R");
          break;

        ... other case statements ...

        case SQUARE:
//          textcolor(WHITE);
          printf("W");
          break;
        default:
          printf("\n\nERROR:  UNKNOWN OUTPUT TYPE\r\n");
          exit(1);
          break;
        }
      }
//    cprintf("\r\n");
    printf("\n");
...

It was all cprintf() but to no avail. I have since reverted the code back to
it's original format and commented out the textcolor()'s.

Sorry about the delay in posting this.

--

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