diff options
Diffstat (limited to 'gnu/lib/libdialog/yesno.c')
-rw-r--r-- | gnu/lib/libdialog/yesno.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/lib/libdialog/yesno.c b/gnu/lib/libdialog/yesno.c index 9024470..d3dfb1e 100644 --- a/gnu/lib/libdialog/yesno.c +++ b/gnu/lib/libdialog/yesno.c @@ -19,7 +19,8 @@ */ #ifndef lint -static const char rcsid[] = "$FreeBSD$"; +static const char rcsid[] = + "$FreeBSD$"; #endif #include <dialog.h> @@ -121,6 +122,10 @@ dialog_yesno_proc(unsigned char *title, unsigned char *prompt, int height, int w while (key != ESC) { print_button(dialog, " No ", y, x+13, button); print_button(dialog, " Yes " , y, x, !button); + if (button) + wmove(dialog, y, x+16); + else + wmove(dialog, y, x+2); wrefresh(dialog); key = wgetch(dialog); |