Date: Fri, 11 Oct 2013 18:14:50 +0000 (UTC) From: Devin Teske <dteske@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r256323 - head/usr.sbin/bsdconfig/share Message-ID: <201310111814.r9BIEoOd026298@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dteske Date: Fri Oct 11 18:14:49 2013 New Revision: 256323 URL: http://svnweb.freebsd.org/changeset/base/256323 Log: Add a USE_DIALOG global (analogous to USE_XDIALOG); useful for inserting text into a prompt or command syntax iff dialog(1) is in-use. Approved by: re (glebius) Modified: head/usr.sbin/bsdconfig/share/dialog.subr Modified: head/usr.sbin/bsdconfig/share/dialog.subr ============================================================================== --- head/usr.sbin/bsdconfig/share/dialog.subr Fri Oct 11 17:54:22 2013 (r256322) +++ head/usr.sbin/bsdconfig/share/dialog.subr Fri Oct 11 18:14:49 2013 (r256323) @@ -2044,6 +2044,7 @@ f_dialog_menutag2index_with_help() f_dialog_init() { DIALOG_SELF_INITIALIZE= + USE_DIALOG=1 # # Clone terminal stdout so we can redirect to it from within sub-shells @@ -2087,7 +2088,7 @@ f_dialog_init() # # Process `-X' command-line option # - [ "$USE_XDIALOG" ] && DIALOG=Xdialog + [ "$USE_XDIALOG" ] && DIALOG=Xdialog USE_DIALOG= # # Sanity check, or die gracefully
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310111814.r9BIEoOd026298>