hi all, I am writing a simple scipt application, and when I call dialog --dselect $DIRPATH 17 70 2>TMP
it appears to work, but if I use the arrow keys to move to the directory window and press enter, instead of exiting, passing the selected item, text imput goes to the bottom of the screen, and until I press Ctl-D or Ctl-C is stuck.
the exact test code is below.
Code:
dialog --colors --title "\Z4qvc\Zn" --dselect "$IMAGEDIR" 10 70 2>$TMP && {
if [ -e $TMP ]; then
echo "`cat $MTP` returned"
exit 2
else
echo "nothing returned"
exit 2
fi
}
echo "dialog errored with $?"
exit 2
where the IMAGEDIR variable is already set, as is the TMP variable.
any clues as to what I'm doing wrong - or is there a bug?
I should say that other uses of dialog in the script are working just fine ( --menu , --yesno --msgbox --radiolist and --checklist )
thanks