src/input.c

changeset 208
e9c3d3e89465
parent 202
6960625e62e0
equal deleted inserted replaced
207:ab4d9013e065 208:e9c3d3e89465
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 * 27 *
28 */ 28 */
29 29
30 #include "input.h" 30 #include "input.h"
31 #include <curses.h>
31 #include <ctype.h> 32 #include <ctype.h>
32 #include <stdbool.h> /* necessary to avoid errors with outdated curses.h */
33 #include <curses.h>
34 33
35 int prompt_yesno(char *msg) { 34 int prompt_yesno(char *msg) {
36 printw("%s (y/n)? ", msg); 35 printw("%s (y/n)? ", msg);
37 clrtoeol(); 36 clrtoeol();
38 refresh(); 37 refresh();

mercurial