Thread: Print Screen

  1. #1
    Registered User /\/\ E /\/ @'s Avatar
    Join Date
    Jul 2002
    Posts
    10

    Question Print Screen

    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.

  2. #2
    Registered User
    Join Date
    Jun 2002
    Posts
    267

    Re: Print Screen

    Originally posted by /\/\ E /\/ @
    Is it possible to print the contents on the screen in colour by using the system();
    What?

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    13
    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.

  4. #4
    Registered User /\/\ E /\/ @'s Avatar
    Join Date
    Jul 2002
    Posts
    10

    Re: Re: Print Screen

    Originally posted by d00b

    What?
    nevermind...it's not important...I was just curious...
    Thanx Anyways

  5. #5
    datainjector
    Guest

    yes it is but for windows 2k

    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

  6. #6
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946

    Re: yes it is but for windows 2k

    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
    hello, internet!

  7. #7
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356

    Re: Print Screen

    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...
    "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 ???

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why i can get the result print to the screen
    By wise_ron in forum C Programming
    Replies: 7
    Last Post: 05-22-2006, 08:06 PM
  2. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  3. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM
  4. What kind of programs should I start writing?
    By Macabre in forum C++ Programming
    Replies: 23
    Last Post: 04-12-2003, 08:13 PM
  5. how do i print the screen?
    By massive_attack in forum C++ Programming
    Replies: 4
    Last Post: 12-29-2001, 02:39 PM