delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/26/18:40:59

From: Michal Mertl <mime AT eunet DOT cz>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Color with gcc
Date: Wed, 26 Mar 1997 18:10:47 -0800
Organization: VSE Praha
Lines: 20
Message-ID: <3339D727.49B6@eunet.cz>
References: <333819EB DOT 3878 AT worldonline DOT nl>
NNTP-Posting-Host: j359h8.vse.cz
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

J. van Eijnsbergen wrote:
> 
> Can anyone tell me if I can use colors in C (or C++) programs.
> Something like:
> textcolor(red)
> textbackground(green)
> 
> Can Gcc do this, do I need a special (.h) header ?
> 
> Greetings,
> --
> Han van Eijnsbergen
> hanvane AT worldonline DOT nl
> http://www.worldonline.nl/~hanvane/index.html
> http://www.worldonline.nl/~hanvane/zin.htmYou have to #include <conio.h>. Look into this header to find prototypes 
or check info files. I don't remember exact names of functions but I 
think they are similar that ones you used (are you former Pascal 
gromrammer (as month ago I was)?)

Michal

- Raw text -


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