making CR call behave like carriage return for non tty