28 */ |
28 */ |
29 |
29 |
30 #include "input.h" |
30 #include "input.h" |
31 #include <string.h> |
31 #include <string.h> |
32 #include <ctype.h> |
32 #include <ctype.h> |
33 |
|
34 void init_colorpairs() { |
|
35 init_pair(COL_YB, COLOR_YELLOW, COLOR_BLUE); |
|
36 init_pair(COL_BW, COLOR_BLACK, COLOR_WHITE); |
|
37 init_pair(COL_WB, COLOR_WHITE, COLOR_BLACK); |
|
38 } |
|
39 |
33 |
40 int prompt_yesno(char *msg) { |
34 int prompt_yesno(char *msg) { |
41 printw("%s (y/n)? ", msg); |
35 printw("%s (y/n)? ", msg); |
42 refresh(); |
36 refresh(); |
43 noecho(); |
37 noecho(); |