My bash-script looks as following:
echo \"Description:\" while [ $finishInput -eq 0 ]; do read tmp desc=\"$desc\"$\'\\n\'\"$tmp\" if [ -z \"$tmp\" ]; then fi
If you want to run a script in a loop and not blow up your scrollback, you can use the following pattern:
while sleep 10s; do echo -n $(script) echo -n -e "\e[0K\r" done
Just replace the script command with your own.
script