Mail Archives: djgpp/1998/07/12/00:19:04
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 -