4 * small test-driver for new dialog functionality
6 * Copyright (c) 1998, Anatoly A. Orehovsky
8 * $FreeBSD: src/gnu/lib/libdialog/TESTS/tree.c,v 1.2 2000/01/10 11:52:10 phantom Exp $
15 unsigned char *names[] = {
25 "/stand/en_US.ISO8859-1",
30 "/stand/info/manpages",
31 "/stand/info/proflibs",
52 unsigned char *names1[] = {
60 main(int argc, char **argv)
63 unsigned char *tresult;
68 use_helpline("Press OK for listing directory");
69 retval = dialog_tree(names,
70 sizeof(names)/sizeof(unsigned char *) - 1,
72 "tree dialog box example",
73 "Typical find -x / -type d output",
81 (void)snprintf(comstr, sizeof(comstr),
82 "ls -CF %s", tresult);
84 retval = dialog_prgbox(
86 comstr, 20, 60, TRUE, TRUE);
90 retval = dialog_tree(names1,
91 sizeof(names1)/sizeof(unsigned char *),
93 "tree dialog box example",