Commit 8f320d4f authored by Vitaly Lipatov's avatar Vitaly Lipatov

outformat: don't use color output if tput is missed

parent 3b008b8c
...@@ -35,6 +35,7 @@ isatty() ...@@ -35,6 +35,7 @@ isatty()
# Use color or no # Use color or no
isatty && TERMOUTPUT=1 || TERMOUTPUT= isatty && TERMOUTPUT=1 || TERMOUTPUT=
[ -n "$TERMOUTPUT" ] && which tput 2>/dev/null >/dev/null && TERMOUTPUT=1 || TERMOUTPUT=
# The cmd names and color codes used as arguments for tput(1) # The cmd names and color codes used as arguments for tput(1)
# were taken from terminfo(5). # were taken from terminfo(5).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment