diff options
author | Chinmay Dalal <dalal.chinmay.0101@gmail.com> | 2023-07-04 20:43:55 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 16:13:55 +0100 |
commit | 43b2917dce1ae9c5949d66dfc6baf8d04d359971 (patch) | |
tree | ac44edbf7ec2cc8ac49dedb932f469c30bb34e86 | |
parent | 408f9e06676ffdc226adf652e013aa15861589ad (diff) | |
download | google-benchmark-43b2917dce1ae9c5949d66dfc6baf8d04d359971.tar.gz |
Add more terminals with color support (#1621)
-rw-r--r-- | src/colorprint.cc | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/colorprint.cc b/src/colorprint.cc index 9a653c5..0bfd670 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: - // <https://github.com/google/googletest/blob/main/googletest/src/gtest.cc#L2925>. + // <https://github.com/google/googletest/blob/v1.13.0/googletest/src/gtest.cc#L3225-L3259>. 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"); |