comparison: src/input.c
src/input.c
- changeset 210
- 7ad6c62f6bdc
- parent 208
- e9c3d3e89465
equal
deleted
inserted
replaced
| 30 #include "input.h" |
30 #include "input.h" |
| 31 #include <curses.h> |
31 #include <curses.h> |
| 32 #include <ctype.h> |
32 #include <ctype.h> |
| 33 |
33 |
| 34 int prompt_yesno(char *msg) { |
34 int prompt_yesno(char *msg) { |
| 35 printw("%s (y/n)? ", msg); |
35 addstr(msg); |
| |
36 addstr(" (y/n)? "); |
| 36 clrtoeol(); |
37 clrtoeol(); |
| 37 refresh(); |
38 refresh(); |
| 38 noecho(); |
39 noecho(); |
| 39 int ch; |
40 int ch; |
| 40 do { |
41 do { |