]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - gnu/usr.bin/dialog/TESTS/msgbox
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.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