xref: /freebsd/contrib/dialog/samples/msgbox4-8bit (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
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
8width=30
9while test $width != 61
10do
11$DIALOG --title "MESSAGE BOX (width $width)" --no-collapse --colors "$@" \
12        --msgbox "\
13This 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
17Hi, this is a simple message box.  You can use this to \
18display any message you like.  The box will remain until \
19you press the ENTER key." 22 $width
20returncode=$?
21
22case $returncode in
23  $DIALOG_OK)
24    ;;
25  *)
26    . ./report-button;
27    exit
28    ;;
29esac
30
31width=`expr $width + 1`
32
33done
34