xref: /freebsd/contrib/dialog/samples/textbox3 (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1#!/bin/sh
2# $Id: textbox3,v 1.8 2020/11/26 00:05:52 tom Exp $
3
4. ./setup-vars
5
6. ./setup-tempfile
7
8TEXT=/usr/share/common-licenses/GPL
9test -f $TEXT || TEXT=../COPYING
10
11expand < textbox.txt > $tempfile
12expand < $TEXT >> $tempfile
13
14$DIALOG --clear --title "TEXT BOX" \
15	--extra-button "$@" \
16	--textbox "$tempfile" 22 77
17
18returncode=$?
19
20. ./report-button
21