This is a common problem, there are many posts about it… Move terminal to backgroun usually works with some additional rules, but still should not happen here is the summary of this nad related problems: