Currently the $gsu_banner_txt variable is used only for subcommand
utilities but not for dialog-based tools. There is no real reason for
this restriction, so this commit starts to use the variable also for
the various GUIs.
_gsu_self="$(basename $0)"
gsu_name="${gsu_name:=$_gsu_self}"
gsu_config_var_prefix="${gsu_config_var_prefix:=$gsu_name}"
+ gsu_banner_txt="${gsu_banner_txt:-set \$gsu_banner_txt to customize this message}"
_gsu_init_errors
}
let num++
opts+=" $i $num"
done
- result="$(dialog --menu "$header" $opts 3>&1 1>&2 2>&3 3>&-)"
+ result="$(dialog --menu "$gsu_banner_txt ($header)" $opts 3>&1 1>&2 2>&3 3>&-)"
ret="$?"
}
fi
_get_root_nodes "$tree"
subtree="$result"
- _browse "$gsu_name main menu" "$tree" "$subtree"
+ _browse "main menu" "$tree" "$subtree"
}
_gsu_banner_msg()
{
- gsu_banner_txt="${gsu_banner_txt:-set \$gsu_banner_txt to customize this message}"
gsu_short_msg "### $_gsu_self -- ###"
}