PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/dialog/samples/textbox3

https://bitbucket.org/freebsd/freebsd-head/
Shell | 20 lines | 11 code | 7 blank | 2 comment | 1 complexity | b10f7353f377da843f456f04b863379b MD5 | raw file
 1#!/bin/sh
 2# $Id: textbox3,v 1.6 2010/01/13 10:37:01 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	--extra-button "$@" \
16	--textbox "$tempfile" 22 77
17
18retval=$?
19
20. ./report-button