Mail Archives: djgpp/1998/07/09/18:47:38
Message-ID: | <300083F0.2C0B@linetap.com>
|
From: | nebo <nebo AT linetap DOT com>
|
Organization: | neboland
|
MIME-Version: | 1.0
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: NEWBIE text question
|
References: | <35a4601e DOT 139962692 AT news>
|
Lines: | 25
|
Date: | Thu, 09 Jul 1998 22:26:38 GMT
|
NNTP-Posting-Host: | 209.205.49.230
|
NNTP-Posting-Date: | Thu, 09 Jul 1998 18:26:38 EDT
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Mark Phillips wrote:
>
> Can someone tell me how to change the foreground & background
> color of text for a cout please? It would also be helpful to know how
> to get the cursor move to a certain part of the screen, say row 4
> column 8 for example. One last thing, a way to clear the screen would
> be nice too. thanks for your time
Without a TSR, you can't... use cprintf() instead.
change colour with textattr()
and use gotoxy() for coordinates.
--
Nb
nebo AT LTS MajorNet
nebo AT linetap DOT com Internet
I'll stop drinking when I can't pour,
I'll stop standing when I fall over,
I'll stop moving when I pass out,
I'll stop dreaming when I die.
- Raw text -