xref: /freebsd/contrib/dialog/samples/msgbox3 (revision a96ef4501919d7ac08e94e98dc34b0bdd744802b)
1#!/bin/sh
2# $Id: msgbox3,v 1.8 2019/12/11 00:03:44 tom Exp $
3
4. ./setup-vars
5
6width=35
7while test $width != 61
8do
9$DIALOG --title "MESSAGE BOX (width $width)" --clear --no-collapse "$@" \
10        --msgbox "\
11	H   H EEEEE L     L      OOO
12	H   H E     L     L     O   O
13	HHHHH EEEEE L     L     O   O
14	H   H E     L     L     O   O
15	H   H EEEEE LLLLL LLLLL  OOO
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." 15 $width
20test $? = "$DIALOG_ESC" && break
21width=`expr $width + 1`
22done
23