Change to the way input is terminated