color text in C programming
I 'm using DEV-C++ to write my c program. And also I want to change the text color in the program in windows console environment. From my knowledge, I know that we can change 15 colors by using
SetConsoleTextAttribute (GetStdHandl(STD_OUTPUT_HANDLE),FOREGROUND_RED);
However I need more colors. I heard that curses and ncurses can do it. But in DEV-C++, there are not <curses.h> header file. And I don't really understand how to use it or if it can help me to use with more colorful text color. Also, I tried to download ncurses 5.6 and curses 1.23. However, I don't know if they are useful or not. And I don't know how to use them.
So, please help me to answer the question.
And I need a example program which can be compiled in DEV-C++. Also, I'm using windows but not unix or linux. And my knowledge is very limited, please give me more details about it. Thank you.