From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Multi-tty Date: Fri, 08 Nov 2024 12:09:36 +0100 Message-ID: References: <8634k3qpie.fsf@gnu.org> <87r07nl2gf.fsf@gmail.com> <868qtup0s5.fsf@gnu.org> <87v7wyjagi.fsf@gmail.com> 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="39575"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 08 12:10:22 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 1t9Mse-000A7x-Ro for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Nov 2024 12:10:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9Ms6-0006AI-4S; Fri, 08 Nov 2024 06:09:46 -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 1t9Ms3-00069p-OH for emacs-devel@gnu.org; Fri, 08 Nov 2024 06:09:43 -0500 Original-Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9Ms2-0000Wo-3H; Fri, 08 Nov 2024 06:09:43 -0500 Original-Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-53b34ed38easo1891588e87.0; Fri, 08 Nov 2024 03:09:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731064178; x=1731668978; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dYQacV+aDk/GToMiOa9Wn+FPmSI+uJyUDQ4IqOiv9XI=; b=mv0kXcOkVwz5JDPQABacBDVQCtqPkNu1yBGbolymkhmXb8k93pOgNjDKeCDQt5wbox EYcUAbjmD4V9va6j1for3NkmjZxObdeFVJHchz2iCrdY52wCHjazYRYvETXgZD/kBeyU W7/nG7yvNjd/zNKdCIShl0LQ3TXm+cNdBtPRqalVFMTuSDWzvTqx7JcYoW53balGCeQ0 wsDMVvM/cowOldcpO1/oor+vdRXmC21cC8p7FI0BAyID5p/BEs+bfkvCaWlM3MndaOTS qahpP4KYr0xdwtph0D0/CMnMY4kg/dc8KMxyo+rhLTp8zT3jwyBBb2OVHUf7Vi39nZQJ 3NYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731064178; x=1731668978; h=content-transfer-encoding:mime-version:user-agent: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=dYQacV+aDk/GToMiOa9Wn+FPmSI+uJyUDQ4IqOiv9XI=; b=IsJD71uH6g1CQP9p80VIpaHKq5rlgBIEGrzNJ79azekm2/LM8cMVVmuszXpLy9z+Zz Yi4JShawip85KM8JvWTlLhBceCu0yq2RaU9im01BgH29BvPTPAJs3vOe+ZOipKPDpI9o EEHf2sfSFQ3PchbKaZIw6xUmAqr3KwWm1KF3h1AaerFRV38rOJTeOFfMwrVj7Oat+2JF qPnbns2R70W0/g5wjuUu1idR/pw0ugXkZpOT9PSgCevmF3UAWsn/kfXVuNq616CYqQsz E8tukj6aYStKNGpA/nGERJXUs9O2NGqWWA/euTxjMPJyGZ5Y2coWbfT5takVItu97s9p j7rg== X-Forwarded-Encrypted: i=1; AJvYcCUOJ2aR8YH39GvxRstwMFeidq5jDW85J2CRK5DFMBIn+0oJ3oSit+eZqTR3kkTAqMH4Tmb2GyTUNyBcgg==@gnu.org X-Gm-Message-State: AOJu0YxlKgXn2f0+gmjlln71To7iqBqzhaOwdAAOxwVbRmb4DxZeyljn qLqfM2MHMhNokGuWCfbzgFhY0Hfel9WutQWhiE331SwvMftywyMq9Hy8ZA== X-Google-Smtp-Source: AGHT+IFueZ0jhSYaw2odeinQqPR4vJHftNl2dsfa6Jj6IJBJmyeoZS0QSYoy7UMgnMo/BgXBgYL/vg== X-Received: by 2002:a05:6512:2248:b0:536:554a:24c2 with SMTP id 2adb3069b0e04-53d862bb5d5mr1405674e87.13.1731064178041; Fri, 08 Nov 2024 03:09:38 -0800 (PST) Original-Received: from pro2 (pd9e36fc2.dip0.t-ipconnect.de. [217.227.111.194]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381ed970f68sm4313655f8f.11.2024.11.08.03.09.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2024 03:09:37 -0800 (PST) In-Reply-To: <87v7wyjagi.fsf@gmail.com> (Robert Pluim's message of "Fri, 08 Nov 2024 11:17:49 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=gerd.moellmann@gmail.com; helo=mail-lf1-x12c.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:325265 Archived-At: Robert Pluim writes: >>>>>> 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 *t= erminal_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: > Errare humanum est.