summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpaul <paul@FreeBSD.org>1995-01-10 04:10:55 +0000
committerpaul <paul@FreeBSD.org>1995-01-10 04:10:55 +0000
commitf2fb5b52fa185487ab373deef77b30cec8989dda (patch)
tree0f66f09a0dcba3f0e1f5a3efa700781a4589f26f /lib
parent62368d936ed04f0f0dd494db60e18247324d6bf8 (diff)
downloadFreeBSD-src-f2fb5b52fa185487ab373deef77b30cec8989dda.zip
FreeBSD-src-f2fb5b52fa185487ab373deef77b30cec8989dda.tar.gz
Place the cursor better on buttons.
Stop field display attributes getting clobbered.
Diffstat (limited to 'lib')
-rw-r--r--lib/libforms/forms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libforms/forms.c b/lib/libforms/forms.c
index 319034c..c865b34 100644
--- a/lib/libforms/forms.c
+++ b/lib/libforms/forms.c
@@ -219,6 +219,7 @@ field_action(struct form *form)
for (;;) {
wattron(form->window, F_SELATTR);
disp_action(form, form->current_field);
+ wmove(form->window, field->y, field->x);
ch = wgetch(form->window);
if (ch == F_ACCEPT) {
(*field->field.action->fn)();
@@ -297,7 +298,6 @@ next_field(struct form *form, int ch)
return (0);
print_status("");
- field->attr = F_DEFATTR;
return (1);
}
OpenPOWER on IntegriCloud