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