This solves an issue like bug #142508, but involving etc-update instead
of dispatch-conf. This is also relevant to bug #70668, which is the
same issue, though the reporter suggested to use colors to delimit the
output instead of using clear.
elif [ "${DELETE_ALL}" == "yes" ]; then
input=0
else
+ 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
if [ "${using_editor}" == 0 ]; then
(
echo "Showing differences between ${ofile} and ${file}"
rm ${rm_opts} "${file}"
return 255
;;
- 2) if [ "${using_editor}" == 0 ]; then
+ 2)
+ clear
+ if [ "${using_editor}" == 0 ]; then
(
echo "Showing differences between ${ofile} and ${mfile}"
diff_command "${ofile}" "${mfile}"