fixing terminal issues with the run script output