pinosaur
/
smdp.git
/ blob
f5452d2abdf0ebdbdef4d17846f40e7ed0402ad1
[smdp.git]
/
test
/
color.c
1
#include <ncurses.h>
2
3
WINDOW *w;
4
5
void set_colors(void)
6
{
7
int i;
8
initscr();
9
start_color();
10
use_default_colors();
11
12
for(i=1 ;i<256;i++)
13
{
14
init_pair(i, i, -1);
15
attron(COLOR_PAIR(i));
16
printw(" %3.hd", i);
17
if((i + 3) % 36 == 0) printw("\n");
18
refresh();
19
}
20
standend();
21
getch();
22
endwin();
23
}
24
25
int main(void)
26
{
27
set_colors();
28
return 0;
29
}