aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/functions b/functions
index 1cefa0b..2220835 100644
--- a/functions
+++ b/functions
@@ -21,7 +21,9 @@ STAT_COL=$[$STAT_COL - 13]
# disable colors on broken terminals
TERM_COLORS="$(tput colors 2>/dev/null)"
-if [ -n "${TERM_COLORS}" ]; then
+if [ $? = 3 ]; then
+ TERM_COLORS=8
+elif [ -n "${TERM_COLORS}" ]; then
case "${TERM_COLORS}" in
*[!0-9]*)
USECOLOR=""