14c8945a0SNathan Whitehorn#! /bin/sh 2*a96ef450SBaptiste Daroussin# $Id: infobox2,v 1.6 2019/12/10 23:37:10 tom Exp $ 34c8945a0SNathan Whitehorn 44c8945a0SNathan Whitehorn. ./setup-vars 54c8945a0SNathan Whitehorn 64c8945a0SNathan Whitehornleft=10 74c8945a0SNathan Whitehornunit="seconds" 84c8945a0SNathan Whitehornwhile test $left != 0 94c8945a0SNathan Whitehorndo 104c8945a0SNathan Whitehorn 114c8945a0SNathan Whitehorn$DIALOG --sleep 1 \ 124c8945a0SNathan Whitehorn --title "INFO BOX" "$@" \ 134c8945a0SNathan Whitehorn --infobox "Hi, this is an information box. It is 144c8945a0SNathan Whitehorndifferent from a message box: it will 154c8945a0SNathan Whitehornnot pause waiting for input after displaying 164c8945a0SNathan Whitehornthe message. The pause here is only introduced 174c8945a0SNathan Whitehornby the sleep command within dialog. 184c8945a0SNathan WhitehornYou have $left $unit to read this..." 0 0 194c8945a0SNathan Whitehornleft=`expr $left - 1` 20*a96ef450SBaptiste Daroussintest "$left" = 1 && unit="second" 214c8945a0SNathan Whitehorndone 22