Added a TTY detector.
Colors are now conditioned by tty check.