]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/dialog/samples/msgbox4-8bit
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / dialog / samples / msgbox4-8bit
1 #!/bin/sh
2 # $Id: msgbox4-8bit,v 1.4 2010/01/13 10:20:03 tom Exp $
3
4 . ./setup-vars
5
6 . ./testdata-8bit
7
8 width=30
9 while test $width != 61
10 do
11 $DIALOG --title "MESSAGE BOX (width $width)" --no-collapse --colors "$@" \
12         --msgbox "\
13 This sample uses characters which are non-printing in POSIX locale.
14
15 \Z1`./rotated-data 0 $SAMPLE` \Z2`./rotated-data 1 $SAMPLE` \Z3`./rotated-data 2 $SAMPLE` \Z4`./rotated-data 3 $SAMPLE`\Zn
16
17 Hi, this is a simple message box.  You can use this to \
18 display any message you like.  The box will remain until \
19 you press the ENTER key." 22 $width
20 retval=$?
21
22 case $retval in
23   $DIALOG_CANCEL)
24     echo "Cancel pressed.";exit;;
25   $DIALOG_ESC)
26     echo "ESC pressed.";exit;;
27 esac
28
29 width=`expr $width + 1`
30
31 done