Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

unknown.exe

macrumors member
Original poster
Sep 22, 2007
67
0
Somewhere on Earth
Sup, I need a way to change the text color in my Xcode C++ prog... i'm pretty sure you can't do it but if there is a way can some one tell me?
PS... Ive already tried setcolor and textcolor and they dont work even w/ conio.h...:apple:
 

Krevnik

macrumors 601
Sep 8, 2003
4,101
1,312
If you are using the command-line, you can print the ANSI color codes directly into your text stream.
 

Krevnik

macrumors 601
Sep 8, 2003
4,101
1,312
its not from the command line, it's from xcode

But you are trying to set text color via conio.h, which means your app is a command-line app, right?

If you run the command-line app via XCode, it won't show any color, it will only show color when running the application via the Terminal.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.