xref: /freebsd/contrib/dialog/samples/treeview (revision f4b37ed0f8b307b1f3f0f630ca725d68f1dff30d)
1#!/bin/sh
2# $Id: treeview,v 1.2 2012/12/04 10:53:09 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
20retval=$?
21
22. ./report-tempfile
23