xref: /freebsd/contrib/dialog/samples/treeview (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1#!/bin/sh
2# $Id: treeview,v 1.3 2020/11/26 00:05:52 tom Exp $
3
4. ./setup-vars
5
6. ./setup-tempfile
7
8$DIALOG --title "TREE VIEW DIALOG" \
9	--treeview "TreeView demo" 0 0 0 \
10		tag1 one off 0 \
11		tag2 two off 1 \
12		tag3 three on 2 \
13		tag4 four off 1 \
14		tag5 five off 2 \
15		tag6 six off 3 \
16		tag7 seven off 3 \
17		tag8 eight off 4 \
18		tag9 nine off 1 2> $tempfile
19
20returncode=$?
21
22. ./report-tempfile
23