Hopefully Proper TTY Detection