Deleted Added
full compact
dialog.subr (298884) dialog.subr (300050)
1if [ ! "$_DIALOG_SUBR" ]; then _DIALOG_SUBR=1
2#
3# Copyright (c) 2006-2015 Devin Teske
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

--- 10 unchanged lines hidden (view full) ---

19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
1if [ ! "$_DIALOG_SUBR" ]; then _DIALOG_SUBR=1
2#
3# Copyright (c) 2006-2015 Devin Teske
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

--- 10 unchanged lines hidden (view full) ---

19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
27# $FreeBSD: head/usr.sbin/bsdconfig/share/dialog.subr 298884 2016-05-01 16:38:12Z pfg $
27# $FreeBSD: head/usr.sbin/bsdconfig/share/dialog.subr 300050 2016-05-17 12:52:31Z eadler $
28#
29############################################################ INCLUDES
30
31BSDCFG_SHARE="/usr/share/bsdconfig"
32. $BSDCFG_SHARE/common.subr || exit 1
33f_dprintf "%s: loading includes..." dialog.subr
34f_include $BSDCFG_SHARE/strings.subr
35f_include $BSDCFG_SHARE/variable.subr

--- 1774 unchanged lines hidden (view full) ---

1810 [ "$__var_to_set" ] || echo "$__cp"
1811
1812 return $SUCCESS
1813}
1814
1815# f_dialog_input $var_to_set $prompt [$init [$hline]]
1816#
1817# Prompt the user with a dialog(1) inputbox to enter some value. The inputbox
28#
29############################################################ INCLUDES
30
31BSDCFG_SHARE="/usr/share/bsdconfig"
32. $BSDCFG_SHARE/common.subr || exit 1
33f_dprintf "%s: loading includes..." dialog.subr
34f_include $BSDCFG_SHARE/strings.subr
35f_include $BSDCFG_SHARE/variable.subr

--- 1774 unchanged lines hidden (view full) ---

1810 [ "$__var_to_set" ] || echo "$__cp"
1811
1812 return $SUCCESS
1813}
1814
1815# f_dialog_input $var_to_set $prompt [$init [$hline]]
1816#
1817# Prompt the user with a dialog(1) inputbox to enter some value. The inputbox
1818# remains until the the user presses ENTER or ESC, or otherwise ends the
1818# remains until the user presses ENTER or ESC, or otherwise ends the
1819# editing session (by selecting `Cancel' for example).
1820#
1821# If the user presses ENTER, the exit status is zero (success), otherwise if
1822# the user presses ESC the exit status is 255, or if the user chose Cancel, the
1823# exit status is instead 1.
1824#
1825# NOTE: The hline should correspond to the type of data you want from the user.
1826# NOTE: Should not be used to edit multiline values.

--- 514 unchanged lines hidden ---
1819# editing session (by selecting `Cancel' for example).
1820#
1821# If the user presses ENTER, the exit status is zero (success), otherwise if
1822# the user presses ESC the exit status is 255, or if the user chose Cancel, the
1823# exit status is instead 1.
1824#
1825# NOTE: The hline should correspond to the type of data you want from the user.
1826# NOTE: Should not be used to edit multiline values.

--- 514 unchanged lines hidden ---