Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 6e125fffce41d55d01eca1f56b99ee15 > files > 52

Xdialog-2.0.4-2mdk.i586.rpm

#!/bin/sh

NAME=`Xdialog --stdout --wrap --title "Chain test" \
	      --msgbox "This is a simple dialogs chaining demonstration" 0 0 \
	      --buttons-style text --yesno "Continue ?" 0 0 \
	      --buttons-style icon --inputbox "Please give me your name" 0 0 "" \
	      --icon ./warning.xpm --rc-file ./bluebox.rc --buttons-style default \
	      --msgbox "End of demo..." 0 0`

case $? in
	0)
		echo "All OK.";;
	1)
		echo "Cancel pressed !";;
	255)
		echo "Box closed !";;
esac

if [ "$NAME" != "" ] ; then
	echo "\"$NAME\" entered."
fi