pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
display header / footer from deck header + some compiler warnings
[smdp.git]
/
test
/
color.c
diff --git
a/test/color.c
b/test/color.c
index
b06410c
..
c2b58be
100644
(file)
--- a/
test/color.c
+++ b/
test/color.c
@@
-9,14
+9,14
@@
void set_colors(void)
start_color();
use_default_colors();
start_color();
use_default_colors();
- for(i=
1 ;i<256;
i++)
+ for(i=
0; i < COLORS;
i++)
{
{
-
init_pair(i, i, -1);
-
attron(COLOR_PAIR(i));
-
printw(" %3.hd", i);
-
if(i % 15
== 0) printw("\n");
-
refresh();
-
}
+ init_pair(i, i, -1);
+ attron(COLOR_PAIR(i));
+ printw(" %3.hd", i);
+
if((i + 1) % 36
== 0) printw("\n");
+ refresh();
+ }
standend();
getch();
endwin();
standend();
getch();
endwin();