xref: /freebsd/contrib/dialog/samples/msgbox2 (revision a96ef4501919d7ac08e94e98dc34b0bdd744802b)
14c8945a0SNathan Whitehorn#!/bin/sh
2*a96ef450SBaptiste Daroussin# $Id: msgbox2,v 1.9 2019/12/11 01:56:17 tom Exp $
34c8945a0SNathan Whitehorn
44c8945a0SNathan Whitehorn. ./setup-vars
54c8945a0SNathan Whitehorn
64c8945a0SNathan Whitehorn$DIALOG --title "MESSAGE BOX" --trim "$@" \
74c8945a0SNathan Whitehorn        --msgbox "Hi, this is a simple message box. You can use this to
84c8945a0SNathan Whitehorn                  display any message you like. The box will remain until
94c8945a0SNathan Whitehorn                  you press the ENTER key.  This box is being displayed
104c8945a0SNathan Whitehorn                  with dialogs default aspect ratio of 9." 0 0
11*a96ef450SBaptiste Daroussintest $? = "$DIALOG_ESC" && exit
124c8945a0SNathan Whitehorn
134c8945a0SNathan Whitehorn$DIALOG --aspect 12 --title "MESSAGE BOX  aspect=12" --trim "$@" \
144c8945a0SNathan Whitehorn        --msgbox "Hi, this is a simple message box. You can use this to
154c8945a0SNathan Whitehorn                  display any message you like. The box will remain until
164c8945a0SNathan Whitehorn                  you press the ENTER key.  This box is being displayed
174c8945a0SNathan Whitehorn                  with an aspect ratio of 12." 0 0
18*a96ef450SBaptiste Daroussintest $? = "$DIALOG_ESC" && exit
194c8945a0SNathan Whitehorn
204c8945a0SNathan Whitehorn$DIALOG --aspect 6 --title "MESSAGE BOX  aspect=6" --trim "$@" \
214c8945a0SNathan Whitehorn        --msgbox "Hi, this is a simple message box. You can use this to
224c8945a0SNathan Whitehorn                  display any message you like. The box will remain until
234c8945a0SNathan Whitehorn                  you press the ENTER key.  This box is being displayed
244c8945a0SNathan Whitehorn                  with an aspect ratio of 6." 0 0
25*a96ef450SBaptiste Daroussintest $? = "$DIALOG_ESC" && exit
264c8945a0SNathan Whitehorn
274c8945a0SNathan Whitehorn$DIALOG --aspect 6 --cr-wrap --title "MESSAGE BOX aspect=6 with --cr-wrap" \
28*a96ef450SBaptiste Daroussin        --trim "$@" --msgbox " \
294c8945a0SNathan Whitehorn           Hi, this is a simple
304c8945a0SNathan Whitehorn           message box. You can
314c8945a0SNathan Whitehorn          use this to display any
324c8945a0SNathan Whitehorn             message you like.
334c8945a0SNathan WhitehornThe box will remain until you press the ENTER key.  This box is being displayed with an aspect ratio of 6, and using --cr-wrap.\n" 0 0
34*a96ef450SBaptiste Daroussintest $? = "$DIALOG_ESC" && exit
35