-
how to print it
im tring to use this code to print to print diffrent colorz in stead of numbers , but i just dont know how to start it.. can anyone help me start this .. please if you dont mind
Code:
#include <stdio.h>
#include <ncurses.h>
int main()
{
int x;
if ((initscr() == NULL))
{
printw("Error executing ncurses\n");
wrefresh(stdscr);
exit(1);
}
for(x = 6; x >= 0; --x)
{
wclear(stdscr);
move(10, 25);
box(stdscr, ACS_VLINE, ACS_HLINE);
printw("This programm will start in %d\n",x);
wrefresh(stdscr);
sleep(1);
}
wclear(stdscr);
move(10, 25);
addnstr("PEACE OUT",9);
refresh();
sleep(1);
endwin();
exit(0);
}
btw.. this is in linux
-
Try looking up
start_color();
has_colors();
init_pair();
wattrset();