Is it possible to print the contents on the screen in colour by using the system(); function in stdlib.h header file? I tried to look all over but I can't seem to figure it out.
Thanx in advance.
Printable View
Is it possible to print the contents on the screen in colour by using the system(); function in stdlib.h header file? I tried to look all over but I can't seem to figure it out.
Thanx in advance.
What? :confused:Quote:
Originally posted by /\/\ E /\/ @
Is it possible to print the contents on the screen in colour by using the system();
No. ANSI C doesn't support graphics so nothing in stdlib.h will support anything special like that. system is used to make the OS execute a command.
If you want to change the color of your text, you need to either use a library to do so, or write video memory directly.
nevermind...it's not important...I was just curious...Quote:
Originally posted by d00b
What? :confused:
Thanx Anyways :)
Well c system(); executes commands on command dos.. Well the dos in 2k has a function know as color check it out
so
system("color f" );
will change the color of the text in command dos ..that means ur program will be in the color u said it shoudl be ...
for more info on the color command type
color /? // on the command prompt
but then you are making a dos app which requires windoze to run, and not just windoze, but windoze 2000. about the worst in crossplatform compatibility concievableQuote:
Originally posted by datainjector
Well c system(); executes commands on command dos.. Well the dos in 2k has a function know as color check it out
so
system("color f" );
will change the color of the text in command dos ..that means ur program will be in the color u said it shoudl be ...
for more info on the color command type
color /? // on the command prompt
I know i did what he said yooo...;)Quote:
Originally posted by /\/\ E /\/ @
Is it possible to print the contents on the screen in colour by using the system(); function in stdlib.h header file? I tried to look all over but I can't seem to figure it out.
Thanx in advance.