Only manipulate output terminal state if it is a terminal