xref: /freebsd/contrib/dialog/samples/msgbox5 (revision 02e9120893770924227138ba49df1edb3896112a)
1#!/bin/sh
2# $Id: msgbox5,v 1.6 2019/12/11 00:03:34 tom Exp $
3# this differs from msgbox3 by making a window small enough to force scrolling.
4
5. ./setup-vars
6
7width=35
8while test $width != 61
9do
10$DIALOG --title "MESSAGE BOX (width $width)" --clear --no-collapse "$@" \
11        --msgbox "\
12	H   H EEEEE L     L      OOO
13	H   H E     L     L     O   O
14	HHHHH EEEEE L     L     O   O
15	H   H E     L     L     O   O
16	H   H EEEEE LLLLL LLLLL  OOO
17
18Hi, this is a simple message box.  You can use this to \
19display any message you like.  The box will remain until \
20you press the ENTER key." 10 $width
21test $? = "$DIALOG_ESC" && break
22width=`expr $width + 1`
23done
24