/contrib/dialog/samples/timebox

https://bitbucket.org/freebsd/freebsd-head/ · Shell · 14 lines · 8 code · 4 blank · 2 comment · 0 complexity · 05e95eeaa110f5e180a479855231c9cc MD5 · raw file

  1. #!/bin/sh
  2. # $Id: timebox,v 1.9 2010/01/13 10:23:10 tom Exp $
  3. . ./setup-vars
  4. DIALOG_ERROR=254
  5. export DIALOG_ERROR
  6. exec 3>&1
  7. RESULT=`$DIALOG --title "TIMEBOX" "$@" --timebox "Please set the time..." 0 0 12 34 56 2>&1 1>&3`
  8. retval=$?
  9. exec 3>&-
  10. . ./report-string