From 2c082ce800db92ffd41381dbd9cc2879b4308ebf Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 11 Nov 2021 16:58:47 +0200 Subject: [PATCH] ; * src/term.c (init_tty): Fix last change. --- src/term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/term.c b/src/term.c index fd8db5349df..b4f3dfc25e4 100644 --- a/src/term.c +++ b/src/term.c @@ -4155,7 +4155,7 @@ use the Bourne shell command 'TERM=...; export TERM' (C-shell:\n\ /* Fall back to xterm+direct (semicolon version) if Tc is set (de-facto standard introduced by tmux) or if requested by the COLORTERM environment variable. */ - else if ((tigetflag ("Tc") != -1) + else if ((tigetflag ("Tc") > 0) || ((bg = getenv ("COLORTERM")) != NULL && strcasecmp (bg, "truecolor") == 0)) { -- 2.39.2