detect tty for colors