Hey friends , Is there any way to change textcolor in C?
I am not able to find any method...

Recommended Answers

All 2 Replies

There is no portable way of changing text color in C. It is highly a compiler dependent or OS dependent feature. If you are using Turbo compiler you can use the console I/O functions cprintf() and cputs() for color output.

#include <conio.h>
      int main()
          cprintf("I'm blue.");
          return 0 ;

Thanks for ur help..
I had found one .....
outtextxy(x,y, text);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.