Deleted Added
full compact
dialog.subr (251265) dialog.subr (251266)
1if [ ! "$_DIALOG_SUBR" ]; then _DIALOG_SUBR=1
2#
3# Copyright (c) 2006-2013 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 (INLUDING, 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-2013 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 (INLUDING, 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 251265 2013-06-02 22:04:39Z dteske $
27# $FreeBSD: head/usr.sbin/bsdconfig/share/dialog.subr 251266 2013-06-02 22:34:40Z dteske $
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

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

1667
1668 return $SUCCESS
1669}
1670
1671# f_dialog_input $var_to_set $prompt [$init [$hline]]
1672#
1673# Prompt the user with a dialog(1) inputbox to enter some value. The inputbox
1674# remains until the the user presses ENTER or ESC, or otherwise ends the
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

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

1667
1668 return $SUCCESS
1669}
1670
1671# f_dialog_input $var_to_set $prompt [$init [$hline]]
1672#
1673# Prompt the user with a dialog(1) inputbox to enter some value. The inputbox
1674# remains until the the user presses ENTER or ESC, or otherwise ends the
1675# editing session, by selecting `Cancel' for example.
1675# editing session (by selecting `Cancel' for example).
1676#
1677# If the user presses ENTER, the exit status is zero (success), otherwise if
1678# the user presses ESC the exit status is 255, or if the user chose Cancel, the
1679# exit status is instead 1.
1680#
1681# NOTE: The hline should correspond to the type of data you want from the user.
1682# NOTE: Should not be used to edit multiline values.
1683#

--- 411 unchanged lines hidden ---
1676#
1677# If the user presses ENTER, the exit status is zero (success), otherwise if
1678# the user presses ESC the exit status is 255, or if the user chose Cancel, the
1679# exit status is instead 1.
1680#
1681# NOTE: The hline should correspond to the type of data you want from the user.
1682# NOTE: Should not be used to edit multiline values.
1683#

--- 411 unchanged lines hidden ---