www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/25/23:35:33

From: "Damian Yerrick" <NOSP AT Musenet@pineight.8m.com>
Newsgroups: comp.os.msdos.djgpp
References: <81jpar$p70$1 AT oak DOT prod DOT itd DOT earthlink DOT net>
Subject: Re: Colored Text
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <4Cn%3.1051$l_6.24678@dfiatx1-snr1.gtei.net>
X-Trace: /Kkf2OpVAGBgHEHnhdsnScVLtJ1NPpPeGp4fYsHwCpuoiHJ3LI/Oa1AlNqcrval6wCOtUaYncG7G!FOLWOS9LQOFS6wYrZgqTOhn96qRciGnO7ivmcED6dsejRdoCMfO9OA7eeqEC+qDekIuZHJY=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Fri, 26 Nov 1999 04:01:04 GMT
Distribution: world
Date: Fri, 26 Nov 1999 04:01:04 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Michael Bronner" <miggl AT earthlink DOT net> wrote:
> 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?

In character-cell text mode, look at conio.h
From command prompt, type
    info libc alpha conio

In APA graphics modes, look at Allegro.
http://www.talula.demon.co.uk/allegro/
Allegro modestly calls itself a "game programming library," but
it's so much more.


Damian Yerrick


- Raw text -


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