xref: /freebsd/contrib/dialog/samples/treeview4 (revision 19261079b74319502c6ffa1249920079f0f69a72)
1#!/bin/sh
2# $Id: treeview4,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	--help-button \
10	--item-help \
11	--treeview "TreeView demo" 0 0 0 \
12		tag1 one   off 0 first \
13		tag2 two   off 1 second \
14		tag3 three on  2 third \
15		tag4 four  off 1 fourth \
16		tag5 five  off 2 fifth \
17		tag6 six   off 3 sixth \
18		tag7 seven off 3 seventh \
19		tag8 eight off 4 eighth \
20		tag9 nine  off 1 ninth 2> $tempfile
21
22returncode=$?
23
24. ./report-tempfile
25