cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/26/01:36:13

Message-ID: <383E23F7.5DC01694@snetch.cpg.com.au>
Date: Fri, 26 Nov 1999 17:08:55 +1100
From: Michael Abbott aka frEk <20014670 AT snetch DOT cpg DOT com DOT au>
Organization: Student of Computer Power Institute
X-Mailer: Mozilla 4.05 [en] (Win95; I)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Colored Text
References: <81jpar$p70$1 AT oak DOT prod DOT itd DOT earthlink DOT net> <81ksd8$f7s$1 AT nntp9 DOT atl DOT mindspring DOT net>
Reply-To: djgpp AT delorie DOT com

I don't know about C++ functions, but you could just use the C functions...

The functions you would be looking for are cprintf, textcolor and
textbackground (the last 2 being the same names as the Pascal functions ;)...

To get ahold of these functions, #include <conio.h>

- frEk

Bryan Woody wrote:

> Michael Bronner wrote in message
> <81jpar$p70$1 AT oak DOT prod DOT itd DOT earthlink DOT net>...
> >Hi there!
> >I used to do some Turbo Pascal and GW Basic, and in those two languages it
> >was simple to output text in a colored format, to set the background and
> >foreground color of the text, etc. Can this be done in DJGPP C++ as well?
> >Thanks for your help!
>
> I'm not sure if there's a function or anything, but you could always use
> ANSI.SYS...
>
> >
> >Sincerely,
> >Michael G. Bronner
> >
> >
> >



- Raw text -


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