pinosaur
/
smdp.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fixed wrong linker usage + fix some compiler warnings
[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=0; i < COLORS; i++)
13
{
14
init_pair(i, i, -1);
15
attron(COLOR_PAIR(i));
16
printw(" %3.hd", i);
17
if((i + 1) % 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
}