xref: /freebsd/contrib/dialog/samples/msgbox5 (revision a96ef4501919d7ac08e94e98dc34b0bdd744802b)
14c8945a0SNathan Whitehorn#!/bin/sh
2*a96ef450SBaptiste Daroussin# $Id: msgbox5,v 1.6 2019/12/11 00:03:34 tom Exp $
34c8945a0SNathan Whitehorn# this differs from msgbox3 by making a window small enough to force scrolling.
44c8945a0SNathan Whitehorn
54c8945a0SNathan Whitehorn. ./setup-vars
64c8945a0SNathan Whitehorn
74c8945a0SNathan Whitehornwidth=35
84c8945a0SNathan Whitehornwhile test $width != 61
94c8945a0SNathan Whitehorndo
104c8945a0SNathan Whitehorn$DIALOG --title "MESSAGE BOX (width $width)" --clear --no-collapse "$@" \
114c8945a0SNathan Whitehorn        --msgbox "\
124c8945a0SNathan Whitehorn	H   H EEEEE L     L      OOO
134c8945a0SNathan Whitehorn	H   H E     L     L     O   O
144c8945a0SNathan Whitehorn	HHHHH EEEEE L     L     O   O
154c8945a0SNathan Whitehorn	H   H E     L     L     O   O
164c8945a0SNathan Whitehorn	H   H EEEEE LLLLL LLLLL  OOO
174c8945a0SNathan Whitehorn
184c8945a0SNathan WhitehornHi, this is a simple message box.  You can use this to \
194c8945a0SNathan Whitehorndisplay any message you like.  The box will remain until \
204c8945a0SNathan Whitehornyou press the ENTER key." 10 $width
21*a96ef450SBaptiste Daroussintest $? = "$DIALOG_ESC" && break
224c8945a0SNathan Whitehornwidth=`expr $width + 1`
234c8945a0SNathan Whitehorndone
24