diff options
author | ache <ache@FreeBSD.org> | 1995-02-15 19:44:08 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-02-15 19:44:08 +0000 |
commit | 8606846519fea95655a87c1758e86ea3e8bffc34 (patch) | |
tree | a7743d34a6549d3bf5ac9aa482d97aaadd19fe2a /gnu/lib/libdialog/inputbox.c | |
parent | c89046c5551c9d22af39898dd39354fd4f5cae44 (diff) | |
download | FreeBSD-src-8606846519fea95655a87c1758e86ea3e8bffc34.zip FreeBSD-src-8606846519fea95655a87c1758e86ea3e8bffc34.tar.gz |
file selector, helpline, helpfile and more, with my fixes
Submitted by: wmbfmk@urc.tue.nl
Diffstat (limited to 'gnu/lib/libdialog/inputbox.c')
-rw-r--r-- | gnu/lib/libdialog/inputbox.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/lib/libdialog/inputbox.c b/gnu/lib/libdialog/inputbox.c index b69267f..b552a9a 100644 --- a/gnu/lib/libdialog/inputbox.c +++ b/gnu/lib/libdialog/inputbox.c @@ -92,6 +92,8 @@ int dialog_inputbox(unsigned char *title, unsigned char *prompt, int height, int box_x = (width - box_width)/2; draw_box(dialog, y+1, box_x-1, 3, box_width+2, border_attr, dialog_attr); + display_helpline(dialog, height-1, width); + x = width/2-11; y = height-2; print_button(dialog, "Cancel", y, x+14, FALSE); @@ -175,6 +177,10 @@ int dialog_inputbox(unsigned char *title, unsigned char *prompt, int height, int return (button == -1 ? 0 : button); case ESC: break; + case KEY_F(1): + case '?': + display_helpfile(); + break; } } |