2 DIALOG=${DIALOG=/usr/bin/dialog}
4 $DIALOG --clear --title "TREE BOX" \
5 --hline "Press arrows, TAB or Enter" \
8 "This is tree box" -1 -1 10 \
9 `find -x / -type d` 2>/tmp/tree.tmp.$$
13 choice=`cat /tmp/tree.tmp.$$`
17 echo "'$choice' chosen.";;
19 echo "Cancel pressed.";;
21 [ -z "$choice" ] || echo $choice ;
25 rm -f /tmp/tree.tmp.$$