Results 1 to 4 of 4

Thread: console tricks?

  1. #1

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471

    console tricks?

    Anyone know if it's possible to change the color of text in
    the console with C++? I know how to do it with assembly
    but have never tried with C++.

    Thanks
    Bababooey
    Tatatoothy
    Mamamonkey

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    SetConsoleTextAttribute() will do it...Im sorry but I don't have an example at the moment. If you search for this you should find a lot of results.

  3. #3

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471
    thx steve!
    do you have any idea whether or not that function allows me to
    color specific words? kinda like the redhat linux console?
    Bababooey
    Tatatoothy
    Mamamonkey

  4. #4

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471
    thx again Steve, I found an example on MSDN and i'm gonna
    try a few things. If anyone is interested, here is the URL of the
    example code on microsoft's site.

    the colors are kinda ugly however, i'll have to see what else
    is possible with this function

    Console colors, text, background
    Bababooey
    Tatatoothy
    Mamamonkey

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width