]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - 6/gnu/usr.bin/dialog/TESTS/msgbox
Clone Kip's Xen on stable/6 tree so that I can work on improving FreeBSD/amd64
[FreeBSD/FreeBSD.git] / 6 / 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