summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2011-12-09 09:17:23 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2011-12-09 09:17:23 +0100
commit13b93f40ab2dd0777c4051996e604858c4e2fafb (patch)
treedc197f099a39c3839968e44016e011be79261e56 /solenv
parentf5549c9429c8dbda4e5ad213f1f5c811567625bd (diff)
Allow gb_COLOR and gb_TITLES for 256color TERMs, too
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/Output.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/solenv/gbuild/Output.mk b/solenv/gbuild/Output.mk
index e4b811f477ce..ab5ec5a74c32 100644
--- a/solenv/gbuild/Output.mk
+++ b/solenv/gbuild/Output.mk
@@ -60,8 +60,12 @@ gb_Output_BELL := $(shell echo|awk 'BEGIN { printf "%c", 7 }' -)
# only enable colorized output if
# - gb_COLOR is set
# - we have a known term
+KNOWN_TERM:=Eterm aterm gnome kterm linux putty rxvt rxvt-unicode screen xterm xterm xtermc
+KNOWN_TERM:=$(KNOW_TERM) $(patsubst %,%-color,$(KNOWN_TERM))
+KNOWN_TERM:=$(KNOW_TERM) $(patsubst %-color,%-256color,$(KNOWN_TERM))
+KNOWN_TERM:=$(KNOW_TERM) $(patsubst %-color,%+256color,$(KNOWN_TERM))
ifneq ($(strip $(gb_COLOR)),)
-ifneq ($(filter $(TERM),Eterm aterm gnome kterm linux rxvt rxvt-unicode screen xterm xterm-color xtermc),)
+ifneq ($(filter $(TERM),$(KNOWN_TERM)),)
gb_Output_COLOR_RESET := $(gb_Output_ESCAPE)[0m
gb_Output_COLOR_RESETANDESCAPE := $(gb_Output_COLOR_RESET)$(gb_Output_ESCAPE)
@@ -121,7 +125,7 @@ endif
# - gb_TITLES is set
# - we have a known term
ifneq ($(strip $(gb_TITLES)),)
-ifneq ($(filter $(TERM),Eterm aterm gnome kterm rxvt rxvt-unicode screen xterm xterm-color),)
+ifneq ($(filter $(TERM),$(KNOWN_TERM)),)
define gb_Output_announce_title
$(info $(gb_Output_ESCAPE)]2;gbuild: $(1)$(gb_Output_BELL)$(gb_Output_ESCAPE)[A)
endef