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