/contrib/dialog/samples/textbox-help
https://bitbucket.org/freebsd/freebsd-head/ · Shell · 20 lines · 11 code · 7 blank · 2 comment · 1 complexity · 14d0a1e39961c27aaacf36caadf03334 MD5 · raw file
- #!/bin/sh
- # $Id: textbox-help,v 1.1 2011/01/18 09:59:20 tom Exp $
- . ./setup-vars
- . ./setup-tempfile
- TEXT=/usr/share/common-licenses/GPL
- test -f $TEXT || TEXT=../COPYING
- cat textbox.txt | expand > $tempfile
- cat $TEXT | expand >> $tempfile
- $DIALOG --clear --title "TEXT BOX" \
- --help-button "$@" \
- --textbox "$tempfile" 22 77
- retval=$?
- . ./report-button