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.
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?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...Originally posted by d00b
What?
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 concievableOriginally 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
hello, internet!
I know i did what he said yooo...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.
"I wish i could wish my wishs away"
"By indirections find directions out" -- William Shakespears
"Do what thou wilt shall be the whole of the law" -- Crowley "THE BEAST 666"
Mizra -> love = Death...
RDB(Rocks yooo)..
http://www.cbeginnersunited.com
Are you ready for the Trix ???