home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / a / hdsetup / dialog-0.4-1 / dialog-0 / dialog-0.4-slackware / samples / msgbox < prev    next >
Encoding:
Text File  |  1994-01-11  |  353 b   |  15 lines

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