]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/dialog/samples/msgbox4-8bit
Merge bearssl-20220418
[FreeBSD/FreeBSD.git] / contrib / dialog / samples / msgbox4-8bit
1 #!/bin/sh
2 # $Id: msgbox4-8bit,v 1.8 2020/11/26 00:26:09 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 returncode=$?
21
22 case $returncode in
23   $DIALOG_OK)
24     ;;
25   *)
26     . ./report-button;
27     exit
28     ;;
29 esac
30
31 width=`expr $width + 1`
32
33 done