2 DIALOG=${DIALOG=/usr/bin/dialog}
4 find -xd / -type d > /tmp/ftreebox.tmp.$$
6 $DIALOG --clear --title "FTREE BOX" \
7 --hline "Press arrows, TAB or Enter" \
9 --ftree "/tmp/ftreebox.tmp.$$" "/" \
11 -1 -1 10 2>/tmp/ftree.tmp.$$
15 choice=`cat /tmp/ftree.tmp.$$`
19 echo "'$choice' chosen.";;
21 echo "Cancel pressed.";;
23 [ -z "$choice" ] || echo $choice ;
27 rm -f /tmp/ftreebox.tmp.$$ /tmp/ftree.tmp.$$