When i was on rh 7.2 this peace of code worked...
Code:#include <stdio.h> #include <ncurses.h> int main() { initscr(); start_color(); noecho(); cbreak(); init_pair(2, COLOR_RED, COLOR_RED); attron(COLOR_PAIR(2)); wprintf(5,"\033[34;41mThis is blue text on a red background.\033[0m\n"); attroff(COLOR_PAIR(2)); refresh(); endwin(); return 0; }
But ever since i have upgraded to rh 7.3.. i cant get nothing to work on ncurses... does anyone have the sampe problem?...
When i type in "echo $TERM" i get xterm so it should work...but i dont know why its not working



LinkBack URL
About LinkBacks


