-#ifndef SERGEEV
- wgetnstr(stdscr, line, max);
- wrefresh(stdscr);
-#else /* SERGEEV */
- line[0]=max-1;
- cgets(line);
- memmove(line,&line[2],max-3);
-#endif /* SERGEEV */
- } else {
- fgets(line, max, stdin);
- line[strlen(line)-1] = '\0';
+ wattroff(curwnd, A_REVERSE);
+#ifdef FOO
+ switch(color) {
+ case DEFAULT:
+ wattrset(curwnd, 0);
+ break;
+ case BLACK:
+ wattron(curwnd, COLOR_PAIR(BLACK));
+ break;
+ case BLUE:
+ wattron(curwnd, COLOR_PAIR(BLUE));
+ break;
+ case GREEN:
+ wattron(curwnd, COLOR_PAIR(GREEN));
+ break;
+ case CYAN:
+ wattron(curwnd, COLOR_PAIR(CYAN));
+ break;
+ case RED:
+ wattron(curwnd, COLOR_PAIR(RED));
+ break;
+ case MAGENTA:
+ wattron(curwnd, COLOR_PAIR(MAGENTA));
+ break;
+ case BROWN:
+ wattron(curwnd, COLOR_PAIR(YELLOW));
+ break;
+ case LIGHTGRAY:
+ wattron(curwnd, COLOR_PAIR(WHITE));
+ break;
+ case DARKGRAY:
+ wattron(curwnd, COLOR_PAIR(BLACK) | A_BOLD);
+ break;
+ case LIGHTBLUE:
+ wattron(curwnd, COLOR_PAIR(BLUE) | A_BOLD);
+ break;
+ case LIGHTGREEN:
+ wattron(curwnd, COLOR_PAIR(GREEN) | A_BOLD);
+ break;
+ case LIGHTCYAN:
+ wattron(curwnd, COLOR_PAIR(CYAN) | A_BOLD);
+ break;
+ case LIGHTRED:
+ wattron(curwnd, COLOR_PAIR(RED) | A_BOLD);
+ break;
+ case LIGHTMAGENTA:
+ wattron(curwnd, COLOR_PAIR(MAGENTA) | A_BOLD);
+ break;
+ case YELLOW:
+ wattron(curwnd, COLOR_PAIR(YELLOW) | A_BOLD);
+ break;
+ case WHITE:
+ wattron(curwnd, COLOR_PAIR(WHITE) | A_BOLD);
+ break;
+ }
+#endif /* FOO */