Comment 5 for bug 103929

Revision history for this message
Micah Cowan (micahcowan) wrote :

Given that bash is in /bin and tput in /usr/bin, it _might_ be a good idea to be paranoid and wrap the tput test with parens, so we shut bash up if it can't find it; just in case the user has /usr on a separate partition:

  if (tput setaf 1) >&/dev/null

Might not be a bad idea to actually /use/ tput, too, in the generated strings, on the off-chance that the terminal has non-standard control sequences for that (but that seems unlikely).