Add check for TTY availability