summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libdialog/dialog.h
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-04-16 12:17:27 +0000
committerjkh <jkh@FreeBSD.org>1996-04-16 12:17:27 +0000
commit24a0bc2e7799a19dab39bf6c633ee7cd52b349ff (patch)
tree4657bce2c0155f54b1e409704ce7296c2c885a8a /gnu/lib/libdialog/dialog.h
parent2d55190c7fa36b39ad2d0189168c9fe4b1558bb7 (diff)
downloadFreeBSD-src-24a0bc2e7799a19dab39bf6c633ee7cd52b349ff.zip
FreeBSD-src-24a0bc2e7799a19dab39bf6c633ee7cd52b349ff.tar.gz
More changes to attempt to make this whole new dialog scheme more
robust. The new "fire" actions, while affording signficantly more interactivity to libdialog, come at a cost - if the fire action trashes the screen then you're not going to be in Kansas anymore when you come back to the menu and there had better be considerable extra smarts in place for coping with such a situation. These changes are my attempt to do just that.
Diffstat (limited to 'gnu/lib/libdialog/dialog.h')
-rw-r--r--gnu/lib/libdialog/dialog.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/lib/libdialog/dialog.h b/gnu/lib/libdialog/dialog.h
index 28c96f6..9619adf 100644
--- a/gnu/lib/libdialog/dialog.h
+++ b/gnu/lib/libdialog/dialog.h
@@ -39,10 +39,16 @@
#endif
/* special return codes for `fire' actions */
+#define DITEM_STATUS(flag) ((flag) & 0x0000FFFF)
#define DITEM_SUCCESS 0
-#define DITEM_FAILURE -1
-#define DITEM_LEAVE_MENU -2
-#define DITEM_REDRAW -3
+#define DITEM_FAILURE 1
+
+/* Flags - returned in upper 16 bits of return status */
+#define DITEM_LEAVE_MENU (1 << 16)
+#define DITEM_REDRAW (1 << 17)
+#define DITEM_RECREATE (1 << 18)
+#define DITEM_RESTORE (1 << 19)
+
/* negative offsets for buttons in item lists, if specified */
#define OK_BUTTON -2
OpenPOWER on IntegriCloud