ok im tring to make this pring out in the color that i have in the code.. but it semez not to work.. i remember i did it last time but .. i cant remember now.. can anyone please help me figure this one out ? thanx..
Code:
#include <ncurses.h>
int main()
{
initscr();
noecho();
cbreak();
start_color();
refresh();
init_pair(2, COLOR_BLUE, COLOR_RED);
attron(COLOR_PAIR(2));
printf("hello colorz");
attroff(COLOR_PAIR(2));
sleep(3);
endwin();
return 0;
}
so please if anyone can help me fix this.. i would be really apresiated.... thanx again