From: Eli Zaretskii Date: Thu, 11 Nov 2021 14:58:47 +0000 (+0200) Subject: ; * src/term.c (init_tty): Fix last change. X-Git-Tag: emacs-29.0.90~3668^2~43 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2c082ce800db92ffd41381dbd9cc2879b4308ebf;p=emacs.git ; * src/term.c (init_tty): Fix last change. --- 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)) {