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: Thu, 07 Nov 2024 12:15:28 +0100 Message-ID: <87r07nl2gf.fsf@gmail.com> References: <8634k3qpie.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="6179"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerd =?utf-8?Q?M=C3=B6llmann?= , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 07 12:16:46 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 1t90VJ-0001Qy-S1 for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Nov 2024 12:16:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t90UX-0007be-I9; Thu, 07 Nov 2024 06:15:57 -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 1t90UR-0007b8-4V for emacs-devel@gnu.org; Thu, 07 Nov 2024 06:15:51 -0500 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t90UK-0003eI-J0; Thu, 07 Nov 2024 06:15:49 -0500 Original-Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4315f24a6bbso6595355e9.1; Thu, 07 Nov 2024 03:15:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730978131; x=1731582931; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from:from :to:cc:subject:date:message-id:reply-to; bh=mvJic4l4bXpLs3p0zaJTCyX1yx3c0gBeyKUqBpuCIxc=; b=GfqIx8sfe4r8WdpwK6c3l0F5IniBzkKdqeHG316kq1MKMjdSH3YEUrtXMQuLCCgWD2 kW8FNp0qOflzZ8QLxR0cwzfzS7hli2NiA4nflAMsaOV4PpqlxLFZn5vj1fAoZJGmk+MM f3d2eLGgeVEUnpyO3bnFnsKUsM852AtwIGnrTZRFWPLqhx6DCQqAjY8Z/GYLdgwAl5OU nuWekwsuGZRy5i+3rZf/7+0a0SekQQ/YZCLVIlJfIES+RrPyFxUoVxvigCVyIVyCZd4i aSItv/XwzxJgjuY/RjHPsSnu5RTmrTnSk2bQNDaR//OddtUL33uR+6BD2dRUI4g9F+lr xY3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730978131; x=1731582931; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mvJic4l4bXpLs3p0zaJTCyX1yx3c0gBeyKUqBpuCIxc=; b=Z2PlXIXVUNd4x2LhN1YNeR2AAJXLUj343SkcZ8TLkE68nTtLMxJ8gsy3KMYIYgrlpE MZ29cjzwZ6K00PgKc1BxaEIJbwIH7bC2tTl6qk2tNr9qPJMiiy575huclg6cyEOyZYBq 1vIVqrCzd7MSOgwPOrVCt7j5Jp9lUu5ZIGRo0nx2y8C0hpgkSEnT90rPLuhPwIKReJko xcQSQZVyhwbrFZZNbM3wQPeZibvCYolhX8wJqECmr5fXjxgT8vmKMj5tArwDUiwohHWI S6548PGKOC48h4Tiwo8jp7BcOyGARe17Tv8gu2ISoLTqh0uXvTtdOKfiN3HgIDijCCd+ NmCg== X-Forwarded-Encrypted: i=1; AJvYcCUc0mL+Y4rP096tO3y8ifcLOIsTiGdPHxUI1ATsmycB4Mf5YtayqTuQ/CnGslCvA0ktTF1nEl/COSnQUw==@gnu.org X-Gm-Message-State: AOJu0YyP5T9HKx+NtRMXQIafA9KP+5pyVg2VXWfwe6xQZonHAlnZ1cJf qsa9LFQ1n91EQi98ZrE0Fyi/nSwn4l1xhoVQJhsQ6gCBZQzl/gxiEPIVOw== X-Google-Smtp-Source: AGHT+IHbIdGNOQGJhjzVcfhi5S0NCJiXM6Cfe0Qhm4dlm2LIQbblMlC75eTZgK3KpioJFbNMI2VdOA== X-Received: by 2002:a05:600c:3c8c:b0:426:60b8:d8ba with SMTP id 5b1f17b1804b1-4319ad04990mr359577495e9.28.1730978130264; Thu, 07 Nov 2024 03:15:30 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb51:cfd4:b576:ecc8:5796]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432b05c1f61sm20543475e9.35.2024.11.07.03.15.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2024 03:15:29 -0800 (PST) In-Reply-To: <8634k3qpie.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 07 Nov 2024 12:58:33 +0200") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=rpluim@gmail.com; helo=mail-wm1-x334.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:325222 Archived-At: >>>>> On Thu, 07 Nov 2024 12:58:33 +0200, Eli Zaretskii said: >> From: Gerd M=C3=B6llmann >> Date: Thu, 07 Nov 2024 10:53:09 +0100 >>=20 >> I was playing with multi-tty today, and I encountered strange behavi= or. >> For example, using 2 terminals that have different capabilties, say >> different TERM and/or COLORTERM, does not really work. >>=20 >> (Informal example: I start an emacs server -nw in iTerm >> (TERM=3Dxterm-256color, COLORTERM=3Dtruecolor), then emacsclient --t= ty in a >> Terminal window (TERM=3Dxterm, COLORTERM not set) =3D> The Emacs fra= me in >> the Terminal window is obviously confused about the terminal's >> color capabilties.) >>=20 >> Is something like that worth writing a bug report? Or maybe it's alr= eady >> known, although I can't find anything in Debbugs? Eli> This is simply not supported, never was. The environment variables Eli> are not per-terminal, so their effect is global, and the way we Eli> process them (and have no other way) is that the environment varia= bles Eli> override what terminfo tells us. They do, but then they change the settings in the per-terminal tty_display_info, no? Or am I misreading init_tty? Certainly TERM=3Dxterm-mono emacsclient -tty gives me a mono emacs. Robert --=20