4 * small test-driver for new dialog functionality
6 * Copyright (c) 1998, Anatoly A. Orehovsky
10 __FBSDID("$FreeBSD$");
16 unsigned char *names[] = {
26 "/stand/en_US.ISO8859-1",
31 "/stand/info/manpages",
32 "/stand/info/proflibs",
53 unsigned char *names1[] = {
61 main(int argc, char **argv)
64 unsigned char *tresult;
69 use_helpline("Press OK for listing directory");
70 retval = dialog_tree(names,
71 sizeof(names)/sizeof(unsigned char *) - 1,
73 "tree dialog box example",
74 "Typical find -x / -type d output",
82 (void)snprintf(comstr, sizeof(comstr),
83 "ls -CF %s", tresult);
85 retval = dialog_prgbox(
87 comstr, 20, 60, TRUE, TRUE);
91 retval = dialog_tree(names1,
92 sizeof(names1)/sizeof(unsigned char *),
94 "tree dialog box example",