How to reset the terminal before command execution?
What you're looking for in BASH is equivalant to what is built-in precmd in ZSH. This built-in function would be executed prior to executing a command. A work around is mentioned in https://superuser.com/questions/175799/does-bash-have-a-hook-that-is-run-before-executing-a-command. I hope it gives you a hint of how to solve your problem. The reset has to be called within this function.