Have assay run its loop only for a TTY