mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-26 04:54:07 +01:00
364c8e85fb
Submitted by: "Anatoly A. Orehovsky" <tolik@mpeks.tomsk.su>
26 lines
460 B
Bash
Executable File
26 lines
460 B
Bash
Executable File
#!/bin/sh
|
|
DIALOG=${DIALOG=/usr/bin/dialog}
|
|
|
|
$DIALOG --clear --title "TREE BOX" \
|
|
--hline "Press arrows, TAB or Enter" \
|
|
--hfile "../COPYING" \
|
|
--tree "/" \
|
|
"This is tree box" -1 -1 10 \
|
|
`find -x / -type d` 2>/tmp/tree.tmp.$$
|
|
|
|
retval=$?
|
|
|
|
choice=`cat /tmp/tree.tmp.$$`
|
|
|
|
case $retval in
|
|
0)
|
|
echo "'$choice' chosen.";;
|
|
1)
|
|
echo "Cancel pressed.";;
|
|
255)
|
|
[ -z "$choice" ] || echo $choice ;
|
|
echo "ESC pressed.";;
|
|
esac
|
|
|
|
rm -f /tmp/tree.tmp.$$
|