2 * small test-driver for new dialog functionality
4 * Copyright (c) 1995, Jordan Hubbard
8 * This source code may be used, modified, copied, distributed, and
9 * sold, in both source and binary form provided that the above
10 * copyright and these terms are retained, verbatim, as the first
11 * lines of this file. Under no circumstances is the author
12 * responsible for the proper functioning of the software nor does
13 * the author assume any responsibility for damages incurred with
17 #include <sys/cdefs.h>
18 __FBSDID("$FreeBSD$");
27 /* Kick it off, James! */
29 main(int argc, char **argv)
32 unsigned char result[128];
37 DialogInputAttrs |= DITEM_NO_ECHO;
38 retval = dialog_inputbox("this is dialog_inputbox() in action, test #2 (no echo)",
39 "Enter something really secret below, please.",
41 DialogInputAttrs &= DITEM_NO_ECHO;
43 fprintf(stderr, "returned value for dialog_inputbox was %d (%s)\n", retval, result);