]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/dialog/samples/msgbox5
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / dialog / samples / msgbox5
1 #!/bin/sh
2 # $Id: msgbox5,v 1.5 2010/01/13 10:26:52 tom Exp $
3 # this differs from msgbox3 by making a window small enough to force scrolling.
4
5 . ./setup-vars
6
7 width=35
8 while test $width != 61
9 do
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
18 Hi, this is a simple message box.  You can use this to \
19 display any message you like.  The box will remain until \
20 you press the ENTER key." 10 $width
21 test $? = $DIALOG_ESC && break
22 width=`expr $width + 1`
23 done