Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 471ab38d6fdc66625fe35554f09fbbe3 > files > 18

Xdialog-2.3.1-6.mga5.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