From e35bb111c3650bd7e1f01937987677e94cdb3e17 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 20 Mar 2018 09:49:07 +0100 Subject: [PATCH] konsole family of terminfo supports colored output Glog was missing colored output when running in terminal who is set to konsole* TERM, even though the terminal itself supports colored output. Add extra terminfo to the check function, so now output from Glog is properly colored. --- src/logging.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/logging.cc b/src/logging.cc index 73c3f403f..28cd91ed2 100644 --- a/src/logging.cc +++ b/src/logging.cc @@ -255,6 +255,9 @@ static bool TerminalSupportsColor() { !strcmp(term, "xterm-color") || !strcmp(term, "xterm-256color") || !strcmp(term, "screen-256color") || + !strcmp(term, "konsole") || + !strcmp(term, "konsole-16color") || + !strcmp(term, "konsole-256color") || !strcmp(term, "screen") || !strcmp(term, "linux") || !strcmp(term, "cygwin");