summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-11-18 15:13:37 +0000
committerjkh <jkh@FreeBSD.org>1994-11-18 15:13:37 +0000
commitdd3d157bd952ed5fd8ea02806fa9db11cc562af0 (patch)
tree29fdabc97f2421586b33db33ebf681edb0f43a5e /release
parent41bcf670378a3a01be4862729e3f7322c5e05f73 (diff)
downloadFreeBSD-src-dd3d157bd952ed5fd8ea02806fa9db11cc562af0.zip
FreeBSD-src-dd3d157bd952ed5fd8ea02806fa9db11cc562af0.tar.gz
If there's no title for input dialog, select one.
Diffstat (limited to 'release')
-rw-r--r--release/miscfuncs.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/release/miscfuncs.sh b/release/miscfuncs.sh
index a15e0d7..336e926 100644
--- a/release/miscfuncs.sh
+++ b/release/miscfuncs.sh
@@ -10,7 +10,7 @@
# putting your name on top after doing something trivial like reindenting
# it, just to make it look like you wrote it!).
#
-# $Id: miscfuncs.sh,v 1.3 1994/11/18 11:01:27 jkh Exp $
+# $Id: miscfuncs.sh,v 1.4 1994/11/18 12:54:45 jkh Exp $
if [ "$_MISCFUNCS_SH_LOADED_" = "yes" ]; then
return 0
@@ -66,25 +66,25 @@ handle_rval()
# A simple user-confirmation dialog.
confirm()
{
- dialog --title "User Confirmation" --msgbox "$*" -1 -1
+ dialog $clear --title "User Confirmation" --msgbox "$*" -1 -1
}
# A simple message box dialog.
message()
{
- dialog --title "Progress" --infobox "$*" -1 -1
+ dialog $clear --title "Progress" --infobox "$*" -1 -1
}
# A simple error dialog.
error()
{
- dialog --title "Error!" --msgbox "$*" -1 -1
+ dialog $clear --title "Error!" --msgbox "$*" -1 -1
}
# Something isn't supported yet! :-(
not_supported()
{
- dialog --title "Sorry!" \
+ dialog $clear --title "Sorry!" \
--msgbox "This feature is not supported in the current version of the \
installation tools. Barring some sort of fatal accident, we do \
expect it to be in the release. Please press RETURN to go on." -1 -1
@@ -93,7 +93,8 @@ expect it to be in the release. Please press RETURN to go on." -1 -1
# Get a string from the user
input()
{
- dialog --title "$title" $clear \
+ title=${title-"User Input Required"}
+ dialog $clear --title "$title" \
--inputbox "$*" -1 -1 "$default_value" 2> ${TMP}/inputbox.tmp.$$
if ! handle_rval $?; then rm -f ${TMP}/inputbox.tmp.$$; return 1; fi
answer=`cat ${TMP}/inputbox.tmp.$$`
OpenPOWER on IntegriCloud