Initial import from FreeBSD RELENG_4:
[dragonfly.git] / gnu / usr.bin / dialog / TESTS / msgbox
1 #!/bin/sh
2 DIALOG=${DIALOG=/usr/bin/dialog}
3
4 $DIALOG --title "MESSAGE BOX" --clear \
5         --msgbox "Hi, this is a simple message box. You can use this to\n\
6 display any message you like. The box will remain until\n\
7 you press the ENTER key." -1 -1
8
9 case $? in
10   0)
11     echo "OK";;
12   255)
13     echo "ESC pressed.";;
14 esac