/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. . ./setup-vars
  4. . ./setup-tempfile
  5. TEXT=/usr/share/common-licenses/GPL
  6. test -f $TEXT || TEXT=../COPYING
  7. cat textbox.txt | expand > $tempfile
  8. cat $TEXT | expand >> $tempfile
  9. $DIALOG --clear --title "TEXT BOX" \
  10. --extra-button "$@" \
  11. --textbox "$tempfile" 22 77
  12. retval=$?
  13. . ./report-button