summaryrefslogtreecommitdiff
path: root/gnu/lib/libdialog/inputbox.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-10-28 03:08:28 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-10-28 03:08:28 +0000
commit3f20de5a5ffbacb67a9fc543362201822e9cdb3d (patch)
treeececb7800f05ccfd7dbac76ba80123d0f3fc52a4 /gnu/lib/libdialog/inputbox.c
parent204218e079022dd57820bc583b7e7c9109b2f893 (diff)
Notes
Diffstat (limited to 'gnu/lib/libdialog/inputbox.c')
-rw-r--r--gnu/lib/libdialog/inputbox.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/lib/libdialog/inputbox.c b/gnu/lib/libdialog/inputbox.c
index 5bf6fcc6faaf..bf423c9c8261 100644
--- a/gnu/lib/libdialog/inputbox.c
+++ b/gnu/lib/libdialog/inputbox.c
@@ -64,7 +64,8 @@ int dialog_inputbox(unsigned char *title, unsigned char *prompt, int height, int
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);
/* Draw the input field box */
box_width = width-6;
@@ -146,6 +147,7 @@ int dialog_inputbox(unsigned char *title, unsigned char *prompt, int height, int
break;
case ' ':
case '\n':
+ case '\r':
delwin(dialog);
if (button < 1)
strcpy(result, instr);