How do i change font color for dos??
Printable View
How do i change font color for dos??
it has been asked 1000000 of times
do a search for specifics
hint - conio.h, textcolor ,etc
conio.h doesnt support textcolor.h and textcolor doesnt show up in help
textcolor is a function not a header.
what compiler are you using
do this
that will make the background of the dos screen blue and the words white. Look in conio.h for a listing of colors. Colors have to be in all caps. You have to clrscr() everytime you change the colors.Code:#include <iostream.h>
#include <conio.h> //Needed to change colors
int main()
{
textcolor(WHITE);
textbackground(BLUE);
clrscr();
cout<<"Hello"<<endl;
return 0;
}
Didn't I read somewhere that you use MSVC++ Denethor? If so then you don't have textcolor in your conio.h. Of course, I may just be crazy. :)
-Prelude
yes, and no.(and maybe yes hehe)
yes : i have MSVC++ 4.0
Yes: I have conio.h, but it doesnt have text commands
Maybe : You're crazy