aboutsummaryrefslogtreecommitdiff
path: root/examples_library/datebox.c
diff options
context:
space:
mode:
authorAlfonso Siciliano <alfsiciliano@gmail.com>2021-12-13 07:54:07 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-12-13 07:54:07 +0000
commite41955dd2d8635cfbab61acb8ad338e7d9f3e7da (patch)
treec4258f9c9a07ea971d4a871a2b5c3454df35d00c /examples_library/datebox.c
parent1b308d0631e5d0d21b631a688cdef1afe378e086 (diff)
Diffstat (limited to 'examples_library/datebox.c')
-rw-r--r--examples_library/datebox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples_library/datebox.c b/examples_library/datebox.c
index b74146b15f26..4839c3dbd895 100644
--- a/examples_library/datebox.c
+++ b/examples_library/datebox.c
@@ -30,7 +30,7 @@ int main()
bsddialog_initconf(&conf);
conf.title = "datebox";
- conf.hline = "Press TAB and arrows";
+ conf.bottomtitle = "Press TAB and arrows";
if (bsddialog_init() < 0)
return -1;
@@ -40,13 +40,13 @@ int main()
bsddialog_end();
switch (output) {
- case BSDDIALOG_YESOK:
+ case BSDDIALOG_OK:
printf("Date: %u/%u/%u", yy, mm, dd);
break;
case BSDDIALOG_ESC:
printf("ESC\n");
break;
- case BSDDIALOG_NOCANCEL:
+ case BSDDIALOG_CANCEL:
printf("Cancel");
break;
case BSDDIALOG_ERROR: