xref: /freebsd-src/contrib/dialog/samples/textbox3 (revision a96ef4501919d7ac08e94e98dc34b0bdd744802b)
14c8945a0SNathan Whitehorn#!/bin/sh
2*a96ef450SBaptiste Daroussin# $Id: textbox3,v 1.8 2020/11/26 00:05:52 tom Exp $
34c8945a0SNathan Whitehorn
44c8945a0SNathan Whitehorn. ./setup-vars
54c8945a0SNathan Whitehorn
64c8945a0SNathan Whitehorn. ./setup-tempfile
74c8945a0SNathan Whitehorn
84c8945a0SNathan WhitehornTEXT=/usr/share/common-licenses/GPL
94c8945a0SNathan Whitehorntest -f $TEXT || TEXT=../COPYING
104c8945a0SNathan Whitehorn
11*a96ef450SBaptiste Daroussinexpand < textbox.txt > $tempfile
12*a96ef450SBaptiste Daroussinexpand < $TEXT >> $tempfile
134c8945a0SNathan Whitehorn
144c8945a0SNathan Whitehorn$DIALOG --clear --title "TEXT BOX" \
154c8945a0SNathan Whitehorn	--extra-button "$@" \
164c8945a0SNathan Whitehorn	--textbox "$tempfile" 22 77
174c8945a0SNathan Whitehorn
18*a96ef450SBaptiste Daroussinreturncode=$?
194c8945a0SNathan Whitehorn
204c8945a0SNathan Whitehorn. ./report-button
21