logoalt Hacker News

kpsyesterday at 5:49 PM0 repliesview on HN

1. That script's color check doesn't check that the output is a terminal. Also test

    tty -s

2. Don't hardcode escape sequences. Use (e.g.)

    export STDOUT_COLOR_START="`tput setaf 4`".