www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/12/00:19:04

Message-ID: <35A7CBAD.5058@ghg.net.extra>
Date: Sat, 11 Jul 1998 15:31:41 -0500
From: "R. Timm" <timmrb AT ghg DOT net DOT extra>
Reply-To: timmrb AT ghg DOT net DOT extra
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Ascii Graphics
References: <35A6CC9A DOT EAA AT ghg DOT net DOT extra> <6o7ah7$9hu$1 AT slave1 DOT aa DOT net>
NNTP-Posting-Host: max5-30.ghg.net
Lines: 31
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Roger H. wrote:
> 
> It is quite easy and if you are using Rhide look under the help menu for the
> libc reference which lists all the functions.  Anyway, you use
> textbackground(int color)  for the background color  and textcolor(int
> color) for the color of the text itself.
> 

I used the following program to try and get the range of colors :

*****begin
#include <iostream.h>
#include <conio.h>

int main()
{
  int i=0;
  for(i=0; i<16; i++)
  {
    textcolor(i);
    cout << "ABCDEFG\n";
  }
}

*****end

All I got for output was 16 rows of normal white ABCDEFG.  What am I
doing wrong?  This seems like it should be simple.

If you reply by e-mail, make sure you remove the extra something from my
address.

- Raw text -


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