File: msgbox

package info (click to toggle)
xdialog 2.0.6-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,616 kB
  • ctags: 1,064
  • sloc: ansic: 8,505; sh: 4,202; yacc: 318; makefile: 80
file content (16 lines) | stat: -rwxr-xr-x 361 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
DIALOG=Xdialog

$DIALOG --title "MESSAGE BOX" \
	--icon ./warning.xpm \
        --msgbox "Hi, this is a simple message box. You can use this to
display any message you like. The box will remain until
you press the ENTER key.
You may also add an icon on the left of this text." 0 0

case $? in
  0)
    echo "OK";;
  255)
    echo "Box closed.";;
esac