|
-
Jan 17th, 2002, 01:13 PM
#1
Thread Starter
Hyperactive Member
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
-
Jan 17th, 2002, 05:21 PM
#2
Frenzied Member
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.
-
Jan 18th, 2002, 07:25 AM
#3
Thread Starter
Hyperactive Member
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
-
Jan 18th, 2002, 08:34 AM
#4
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|