freebsd-dev/usr.sbin/bsdconfig/startup/share
Devin Teske 74036c4de9 Improve portion of the dialog(1) API in dialog.subr responsible for
calculating widget sizes. Instead of forking a sub-shell to calculate the
optimum size for a widget, use a byRef style call-out to set variables in
the parent namespace. For example, instead of:

	size=$( f_dialog_buttonbox_size title btitle msg )
	$DIALOG --title title --backtitle btitle --msgbox msg $size

The new API replaces the above with the following:

	f_dialog_buttonbox_size height width title btitle msg
	$DIALOG --title title --backtitle btitle --msgbox msg $height $width

This reduces the number of forks, improves performance, and makes the code
more readable by revealing the argument-order for widget sizing. It also
makes performing minor adjustments to the calculated values easier as
you no longer have to split-out the response (which required knowledge of
ordering so was counter-intuitive).
2013-05-31 19:07:17 +00:00
..
Makefile
rcconf.subr Improve portion of the dialog(1) API in dialog.subr responsible for 2013-05-31 19:07:17 +00:00
rcedit.subr Don't use f_show_msg() unless printf(1) syntax is required (this reduces the 2013-01-14 21:03:34 +00:00
rcvar.subr UI improvements. First, implement --default-item whenever and wherever 2013-04-22 05:52:06 +00:00