From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Multi-tty Date: Fri, 08 Nov 2024 11:17:49 +0100 Message-ID: <87v7wyjagi.fsf@gmail.com> References: <8634k3qpie.fsf@gnu.org> <87r07nl2gf.fsf@gmail.com> <868qtup0s5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16860"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 08 11:18:31 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t9M4U-00049f-Ka for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Nov 2024 11:18:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9M3w-0006jJ-LB; Fri, 08 Nov 2024 05:17:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9M3u-0006jA-Qf for emacs-devel@gnu.org; Fri, 08 Nov 2024 05:17:54 -0500 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9M3t-0002l6-7b; Fri, 08 Nov 2024 05:17:54 -0500 Original-Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4315c1c7392so17804405e9.1; Fri, 08 Nov 2024 02:17:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731061071; x=1731665871; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=FNLxv4resmbQTDQFbAWk7wijKE4KasE3Mt9ASFQrbYA=; b=P+aT2xsu91ERlGwimMzSvO42b1637sM2bsqFqllBWKxL0JYoHkcwIAyxU9Qk4vOx+R UMsXc6sWVS6ygbvJfKu5+ckQ9NHRZHZXUKZHwfgRewmcHlQeOedSj7ckENAPtYI5S/QK YWMvg4nhJ+3Azjo9xZniVkDT/ebcAPiWeDfz+DKiDG2bq7T2ik/JZmHqIcxYgaJ8voN9 zmtUnqsOT18NYNMUywDYbAsbI8BOgrv8aKNZ7czlcC1utYHYVRW220/6rXQZNmmqK2xn tlVm/3DT0oiuEyZnMblOlFGDXX/IS44KmVa884zAm/egxdoHa7jhpy+xaS3er1i1+tu0 pKcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731061071; x=1731665871; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FNLxv4resmbQTDQFbAWk7wijKE4KasE3Mt9ASFQrbYA=; b=vKnxQlSNpVy7O6ElGUFpzZIjb63TPbpERfr4ItQvZj3lbfL03q6z4tb0YM390RAyBz deXuDoydIkr+ufK4OPfUe0DAhemLyUmLyBs5Y1KGeF+v7OetRrCeG1xxrUP0ipzVdtNN pKdbS+J9ru3UkoYjLchzwGfDCUZv2vTqwkiXPjuG+zzHNHLGCbFD3mJ5Na+fEiGfChRY pXTNMss0Y1CrHdPy7UTHJPjQQtzmKwgFMZQvUUwHPoLgaJrLnDdzcPWVBpCis7+XT8Lc K6ZPgTRumUiU+fMqwIxcUl3RrPfapA/ncKiYPng9zYFM+RBfnJOsGyKOKxu8NYmi5hq5 6bDA== X-Forwarded-Encrypted: i=1; AJvYcCVyW4CWMsOcNe/Yy1xIYwL5k1ZJ6FqjOBnhpcSDDpa/ke8vZpgL6JMM3k974CyXN26Hycmwcfpt/O+E6w==@gnu.org X-Gm-Message-State: AOJu0Yxv9C4wBrcBwvWN4sV3XUpty9nWERLNov/YHTApMQQMM1mTcKzc xLWZd/gl1wtUth1oi/yEb0xvjYY9ugKD5Xs79p33ALAHi0GzbBjk8/l0ww== X-Google-Smtp-Source: AGHT+IGWO1Arvi53W2TgjDuAleMheSu9T7ENJgZAysqfHdDXAcN8TXXWp1b4G1URwZkajGvIbpGqBQ== X-Received: by 2002:a05:600c:a4c:b0:431:5f3b:6ae4 with SMTP id 5b1f17b1804b1-432b7509869mr18776115e9.17.1731061070497; Fri, 08 Nov 2024 02:17:50 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb51:e93a:8e62:e1a0:370b]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432aa5b5db0sm93515555e9.5.2024.11.08.02.17.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2024 02:17:49 -0800 (PST) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llmann=22'?= =?utf-8?Q?s?= message of "Fri, 08 Nov 2024 10:42:58 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=rpluim@gmail.com; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325264 Archived-At: >>>>> On Fri, 08 Nov 2024 10:42:58 +0100, Gerd M=C3=B6llmann said: Gerd> And all that's necessary is Gerd> modified src/term.c Gerd> @@ -4383,7 +4383,7 @@ init_tty (const char *name, const char *ter= minal_type, bool must_succeed) Gerd> (de-facto standard introduced by tmux) or if requested by Gerd> the COLORTERM environment variable. */ Gerd> else if ((tigetflag ("Tc") > 0) Gerd> - || ((bg =3D getenv ("COLORTERM")) !=3D NULL Gerd> + || ((bg =3D egetenv ("COLORTERM")) !=3D NULL Gerd> && strcasecmp (bg, "truecolor") =3D=3D 0)) Gerd> { tty-> TS_set_foreground =3D "\033[%?%p1%{8}%<%t3%p1%d%e38;2;%p1%{65536}= %/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%d%;m"; Gerd> A one character change, isn't that funny :-). Gerd> It works because server.el puts COLORTERM in process-environment Gerd> already, in server-with-environment. Eli disagreed with such a change last time it came up: Robert --=20