9 curs_set(0);//sets visability of cursor
10 noecho();//disable auto-echoing
11 cbreak();//making getch() work without a buffer
12 keypad(stdscr,TRUE);//allows use of special keys, namely the arrow keys
13 if(has_colors() == TRUE)
17 init_pair(COLOR_PAIR1,123,-1);
18 init_pair(COLOR_PAIR2,255,-1);
19 wbkgd(stdscr,COLOR_PAIR(COLOR_PAIR1));
22 WINDOW *test=newwin(10,20,5,20);
23 wbkgd(test,COLOR_PAIR(COLOR_PAIR2));
24 wprintw(test,"try\nUP or DOWN");
29 short blue_ramp[] = { 16, 17, 17, 18, 18, 19,
30 19, 20, 20, 21, 27, 32,
31 33, 38, 39, 44, 45, 45,
32 81, 81, 51, 51, 123, 123};
33 short white_ramp[] = {232, 233, 234, 235, 236, 237,
34 238, 239, 240, 241, 242, 243,
35 244, 245, 246, 247, 248, 249,
36 250, 251, 252, 253, 254, 255};
54 init_pair(COLOR_PAIR1,blue_ramp[i],-1);
55 init_pair(COLOR_PAIR2,white_ramp[i],-1);