PDA

View Full Version : Print Screen



/\/\ E /\/ @
07-29-2002, 08:28 PM
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.

d00b
07-29-2002, 08:30 PM
Originally posted by /\/\ E /\/ @
Is it possible to print the contents on the screen in colour by using the system();
What? :confused:

Javariel
07-29-2002, 08:53 PM
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.

/\/\ E /\/ @
07-29-2002, 09:07 PM
Originally posted by d00b

What? :confused:

nevermind...it's not important...I was just curious...
Thanx Anyways :)

datainjector
08-11-2002, 05:00 PM
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

moi
08-11-2002, 05:09 PM
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

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 concievable

datainjector
08-11-2002, 05:37 PM
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 know i did what he said yooo...;)