From 43b2917dce1ae9c5949d66dfc6baf8d04d359971 Mon Sep 17 00:00:00 2001 From: Chinmay Dalal Date: Tue, 4 Jul 2023 20:43:55 +0530 Subject: [PATCH] Add more terminals with color support (#1621) --- src/colorprint.cc | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/colorprint.cc b/src/colorprint.cc index 9a653c50..0bfd6704 100644 --- a/src/colorprint.cc +++ b/src/colorprint.cc @@ -163,12 +163,24 @@ bool IsColorTerminal() { #else // On non-Windows platforms, we rely on the TERM variable. This list of // supported TERM values is copied from Google Test: - // . + // . const char* const SUPPORTED_TERM_VALUES[] = { - "xterm", "xterm-color", "xterm-256color", - "screen", "screen-256color", "tmux", - "tmux-256color", "rxvt-unicode", "rxvt-unicode-256color", - "linux", "cygwin", + "xterm", + "xterm-color", + "xterm-256color", + "screen", + "screen-256color", + "tmux", + "tmux-256color", + "rxvt-unicode", + "rxvt-unicode-256color", + "linux", + "cygwin", + "xterm-kitty", + "alacritty", + "foot", + "foot-extra", + "wezterm", }; const char* const term = getenv("TERM");