summaryrefslogtreecommitdiff
path: root/Build/source/utils/dialog/dialog-1.1-20080819/samples/msgbox-help
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/dialog/dialog-1.1-20080819/samples/msgbox-help')
-rwxr-xr-xBuild/source/utils/dialog/dialog-1.1-20080819/samples/msgbox-help22
1 files changed, 22 insertions, 0 deletions
diff --git a/Build/source/utils/dialog/dialog-1.1-20080819/samples/msgbox-help b/Build/source/utils/dialog/dialog-1.1-20080819/samples/msgbox-help
new file mode 100755
index 00000000000..ed5ec3f4165
--- /dev/null
+++ b/Build/source/utils/dialog/dialog-1.1-20080819/samples/msgbox-help
@@ -0,0 +1,22 @@
+#!/bin/sh
+# $Id: msgbox-help,v 1.1 2005/12/05 23:59:24 tom Exp $
+: ${DIALOG=dialog}
+
+$DIALOG --title "MESSAGE BOX" --clear \
+ --help-button \
+ --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." 10 41
+
+case $? in
+ 0)
+ echo "OK";;
+ 1)
+ echo "Button 1 (Cancel) pressed.";;
+ 2)
+ echo "Button 2 (Help) pressed.";;
+ 3)
+ echo "Button 3 (Extra) pressed.";;
+ 255)
+ echo "ESC pressed.";;
+esac