elif [ "${DELETE_ALL}" == "yes" ]; then
input=0
else
- clear
+ [[ $CLEAR_TERM == yes ]] && clear
if [[ ${mode} == 0 ]] ; then
echo "The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files."
elif [[ "${DELETE_ALL}" == "yes" ]] && ! user_special "${ofile}"; then
my_input=2
else
- clear
+ [[ $CLEAR_TERM == yes ]] && clear
if [ "${using_editor}" == 0 ]; then
(
echo "Showing differences between ${ofile} and ${file}"
return 255
;;
2)
- clear
+ [[ $CLEAR_TERM == yes ]] && clear
if [ "${using_editor}" == 0 ]; then
(
echo "Showing differences between ${ofile} and ${mfile}"
#CONFIG_PROTECT_MASK=$(/usr/lib/portage/bin/portageq envvar CONFIG_PROTECT_MASK)
# load etc-config's configuration
+CLEAR_TERM=$(get_config clear_term)
EU_AUTOMERGE=$(get_config eu_automerge)
rm_opts=$(get_config rm_opts)
mv_opts=$(get_config mv_opts)
# note that you need dev-util/dialog installed
mode="0"
+# Whether to clear the term prior to each display
+clear_term="yes"
+
# Whether trivial/comment changes should be automerged
eu_automerge="yes"