Nicer handling of Terminal input