Related issue from gnu readline. Remove newlines in input function