use interactive mode automatically if stdin is a tty