Check if we're on a tty before setting it to raw