PageRenderTime 37ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 3ms app.codeStats 0ms

/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
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause, LGPL-2.0, LGPL-2.1, BSD-2-Clause, 0BSD, JSON, AGPL-1.0, GPL-2.0
 1#!/bin/sh
 2# $Id: timebox,v 1.9 2010/01/13 10:23:10 tom Exp $
 3
 4. ./setup-vars
 5
 6DIALOG_ERROR=254
 7export DIALOG_ERROR
 8
 9exec 3>&1
10RESULT=`$DIALOG --title "TIMEBOX" "$@" --timebox "Please set the time..." 0 0 12 34 56 2>&1 1>&3`
11retval=$?
12exec 3>&-
13
14. ./report-string