check for a TTY