check for TTY