Refuse to run without a TTY. Set TERM to LCD.

Fixes high CPU bug when input is not a TTY.  If TERM is not set, sets it to the lowest common denominator.