xref: /freebsd/contrib/dialog/samples/textbox-both (revision f4b37ed0f8b307b1f3f0f630ca725d68f1dff30d)
1#!/bin/sh
2# $Id: textbox-both,v 1.1 2011/01/18 09:59:47 tom Exp $
3
4. ./setup-vars
5
6. ./setup-tempfile
7
8TEXT=/usr/share/common-licenses/GPL
9test -f $TEXT || TEXT=../COPYING
10
11cat textbox.txt | expand > $tempfile
12cat $TEXT | expand >> $tempfile
13
14$DIALOG --clear --title "TEXT BOX" \
15	--help-button \
16	--extra-button "$@" \
17	--textbox "$tempfile" 22 77
18
19retval=$?
20
21. ./report-button
22