xref: /freebsd/contrib/dialog/samples/treeview (revision 02e9120893770924227138ba49df1edb3896112a)
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