xref: /freebsd-src/contrib/dialog/samples/progress2 (revision a96ef4501919d7ac08e94e98dc34b0bdd744802b)
14c8945a0SNathan Whitehorn#!/bin/sh
2*a96ef450SBaptiste Daroussin# $Id: progress2,v 1.8 2020/11/26 00:05:11 tom Exp $
34c8945a0SNathan Whitehorn
44c8945a0SNathan Whitehorn. ./setup-vars
54c8945a0SNathan Whitehorn
64c8945a0SNathan Whitehorn. ./setup-tempfile
74c8945a0SNathan Whitehorn
84c8945a0SNathan Whitehornls -1 >$tempfile
94c8945a0SNathan Whitehorn(
104c8945a0SNathan Whitehornwhile true
114c8945a0SNathan Whitehorndo
124c8945a0SNathan Whitehornread text
134c8945a0SNathan Whitehorntest -z "$text" && break
14f4f33ea0SBaptiste Daroussinls -ld "$text" || break
154c8945a0SNathan Whitehornsleep 1
164c8945a0SNathan Whitehorndone <$tempfile
174c8945a0SNathan Whitehorn) |
184c8945a0SNathan Whitehorn
194c8945a0SNathan Whitehorn$DIALOG --title "PROGRESS" "$@" --progressbox "This is a detailed description\nof the progress-box." 20 70
20f4f33ea0SBaptiste Daroussin
21*a96ef450SBaptiste Daroussinreturncode=$?
22f4f33ea0SBaptiste Daroussin. ./report-button
23