Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > 9a26ee7abed05cda7d0d61634b345519 > files > 18

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