do not echo if no tty is allocated