Code: Select all
Xdialog --title "$WTITLE" --wrap --screen-center --center --yesno "$WMWHAT" 8 40 60
Code: Select all
Xdialog --title "$WTITLE" --wrap --screen-center --center --yesno "$WMWHAT" 8 40 60
Code: Select all
DIALOG=Xdialog
$DIALOG --title "$WTITLE" --wrap --screen-center --center --yesno "$WMWHAT" 8 40
if [ "$?" -eq "1" ]; then
job to do...
fi
Code: Select all
case $1 in
0) ;; # OK/YES was clicked
1) ;; # NO was clicked
255) ;; # The window was destroyed by clicking on the 'x'
esac