From 8559ab2dcdc4f6a2e89b14f67f2af7f089aeac6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 20 Aug 2024 15:10:56 +0800 Subject: [PATCH] Colors (Linux): support tmux in linux TTY --- src/modules/colors/colors.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/colors/colors.c b/src/modules/colors/colors.c index 55192eae5..7da162136 100644 --- a/src/modules/colors/colors.c +++ b/src/modules/colors/colors.c @@ -57,7 +57,8 @@ void ffPrintColors(FFColorsOptions* options) if (options->symbol == FF_COLORS_SYMBOL_BACKGROUND) { const char* term = getenv("TERM"); - if (term && ffStrEquals(term, "linux")) + // Should be "linux", however some terminal mulitplexer overrides $TERM + if (term && !ffStrStartsWith(term, "xterm")) ffStrbufAppendS(&result, "\e[5m"); } #endif