This question already has an answer here:
After running a bash script, my (gnome-)terminal ended up printing each new line where the last one ended (but on the next row). I think it was
printf that broke things, since it works if I replace
echo. Have you any idea what this could be, and how to fix it without having to close the terminal session?
I can not provide the script, because of security reasons. When I have time I will see if I can create a minimal broken example to show.