diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1994-10-28 03:08:28 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1994-10-28 03:08:28 +0000 |
| commit | 3f20de5a5ffbacb67a9fc543362201822e9cdb3d (patch) | |
| tree | ececb7800f05ccfd7dbac76ba80123d0f3fc52a4 /gnu/lib/libdialog/checklist.c | |
| parent | 204218e079022dd57820bc583b7e7c9109b2f893 (diff) | |
Notes
Diffstat (limited to 'gnu/lib/libdialog/checklist.c')
| -rw-r--r-- | gnu/lib/libdialog/checklist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/lib/libdialog/checklist.c b/gnu/lib/libdialog/checklist.c index 4bdaadccc7bf..f802f33505c5 100644 --- a/gnu/lib/libdialog/checklist.c +++ b/gnu/lib/libdialog/checklist.c @@ -81,7 +81,8 @@ int dialog_checklist(unsigned char *title, unsigned char *prompt, int height, in waddch(dialog, ' '); } wattrset(dialog, dialog_attr); - print_autowrap(dialog, prompt, width, 1, 3); + wmove(dialog, 1, 2); + print_autowrap(dialog, prompt, height-1, width-2, width, 1, 2, TRUE, FALSE); list_width = width-6; getyx(dialog, cur_y, cur_x); @@ -306,6 +307,7 @@ int dialog_checklist(unsigned char *title, unsigned char *prompt, int height, in break; case ' ': case '\n': + case '\r': delwin(dialog); if (!button) { *result = '\0'; |
