13 WINDOW *w= panel_window(p);
25 //wattron(w, COLOR_PAIR);
27 for (mask= 1, y= 0; mask < 0x100; mask<<= 1,y++)
29 wattrset(w, (y==cursor)?ha:na);
30 mvwprintw(w, y,x, "%s", (sfr[0]&mask)?"High":" Low");
37 WINDOW *w= panel_window(p);
41 printw("%d 0x%x\n",c,c);
46 main(int argc, char *argv[])
50 initscr(); /* initialize the curses library */
51 keypad(stdscr, TRUE); /* enable keyboard mapping */
52 nonl(); /* tell curses not to do NL->CR/NL on output */
53 cbreak(); /* take input chars one at a time, no wait for \n */
54 noecho(); /* don't echo input */
58 printw("has %d colors and %d pairs\n", COLORS, COLOR_PAIRS);
59 init_pair(1, COLOR_WHITE, COLOR_BLUE);
60 init_pair(2, COLOR_WHITE, COLOR_RED);
63 printw("has UP KEY_UP=0x%x\n",KEY_UP);
65 printf("has no UP\n");
67 printw("got %d %x\n",c,c);
69 WINDOW *w= newwin(10,10, 3,3);
71 PANEL *p= new_panel(w);
86 printf("got \"%d\"\n", c);