Blob Blame History Raw
From e6a98ff289c0c085767c2e910e0a3fb983d8b273 Mon Sep 17 00:00:00 2001
From: Alois Mahdal <amahdal@redhat.com>
Date: Thu, 1 Feb 2018 15:12:12 +0100
Subject: [PATCH 1/5] Enable colors on rxvt terminals

rxvt-unicode sets TERM to 'rxvt-unicode'.  plain old rxvt sets it to
`rxvt`.
---
 src/logging.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/logging.sh b/src/logging.sh
index 2d3972a..38a0466 100644
--- a/src/logging.sh
+++ b/src/logging.sh
@@ -175,7 +175,7 @@ __INTERNAL_color_set() {
   [[ -t 1 ]] || T=""
   [[ -t 2 ]] || T=""
   case $T in
-    xterm*|screen|linux)
+    xterm*|screen|linux|rxvt*)
       __INTERNAL_color_black="\e[0;30m"
       __INTERNAL_color_dark_gray="\e[1;30m"
       __INTERNAL_color_red="\e[0;31m"
--
2.14.3