dialog.subr (242115) | dialog.subr (243476) |
---|---|
1if [ ! "$_DIALOG_SUBR" ]; then _DIALOG_SUBR=1 2# 3# Copyright (c) 2006-2012 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-2012 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 242115 2012-10-26 01:47:59Z dteske $ | 27# $FreeBSD: head/usr.sbin/bsdconfig/share/dialog.subr 243476 2012-11-24 07:02:31Z dteske $ |
28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_include $BSDCFG_SHARE/strings.subr 34 35BSDCFG_LIBE="/usr/libexec/bsdconfig" --- 242 unchanged lines hidden (view full) --- 278 # 279 # For Xdialog(1) bump height if backtitle is enabled (displayed in the 280 # X11 window with a separator line between the backtitle and msg text) 281 # 282 if [ "$USE_XDIALOG" -a "$btitle" ]; then 283 n=$( echo "$btitle" | f_number_of_lines ) 284 height=$(( $height + $n + 2 )) 285 fi | 28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_include $BSDCFG_SHARE/strings.subr 34 35BSDCFG_LIBE="/usr/libexec/bsdconfig" --- 242 unchanged lines hidden (view full) --- 278 # 279 # For Xdialog(1) bump height if backtitle is enabled (displayed in the 280 # X11 window with a separator line between the backtitle and msg text) 281 # 282 if [ "$USE_XDIALOG" -a "$btitle" ]; then 283 n=$( echo "$btitle" | f_number_of_lines ) 284 height=$(( $height + $n + 2 )) 285 fi |
286 | 286 |
287 # Make sure height is less than maximum screen size 288 [ $height -le $max_height ] || height=$max_height 289 290 # Return both 291 echo "$height $width" 292} 293 294# f_dialog_buttonbox_size $title $backtitle $prompt [$hline] --- 1171 unchanged lines hidden --- | 287 # Make sure height is less than maximum screen size 288 [ $height -le $max_height ] || height=$max_height 289 290 # Return both 291 echo "$height $width" 292} 293 294# f_dialog_buttonbox_size $title $backtitle $prompt [$hline] --- 1171 unchanged lines hidden --- |