xref: /freebsd/contrib/dialog/samples/programbox2 (revision a96ef4501919d7ac08e94e98dc34b0bdd744802b)
17a1c0d96SNathan Whitehorn#!/bin/sh
2*a96ef450SBaptiste Daroussin# $Id: programbox2,v 1.4 2020/11/26 00:05:11 tom Exp $
37a1c0d96SNathan Whitehorn
47a1c0d96SNathan Whitehorn. ./setup-vars
57a1c0d96SNathan Whitehorn
67a1c0d96SNathan Whitehorn. ./setup-tempfile
77a1c0d96SNathan Whitehorn
87a1c0d96SNathan Whitehornls -1 >$tempfile
97a1c0d96SNathan Whitehorn(
107a1c0d96SNathan Whitehornwhile true
117a1c0d96SNathan Whitehorndo
127a1c0d96SNathan Whitehornread text
137a1c0d96SNathan Whitehorntest -z "$text" && break
14f4f33ea0SBaptiste Daroussinls -ld "$text" || break
157a1c0d96SNathan Whitehornsleep 0.1
167a1c0d96SNathan Whitehorndone <$tempfile
177a1c0d96SNathan Whitehorn) |
187a1c0d96SNathan Whitehorn
197a1c0d96SNathan Whitehorn$DIALOG --title "PROGRAMBOX" "$@" --programbox "ProgramBox" 20 70
20f4f33ea0SBaptiste Daroussin
21*a96ef450SBaptiste Daroussinreturncode=$?
22f4f33ea0SBaptiste Daroussin. ./report-button
23