0

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

2
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by himanjim
0

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()
      {
          textcolor(BLUE);
          cprintf("I'm blue.");
          return 0 ;
      }
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.