From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Multi-tty Date: Thu, 07 Nov 2024 13:47:31 +0200 Message-ID: <86y11vp8oc.fsf@gnu.org> References: <8634k3qpie.fsf@gnu.org> <87r07nl2gf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25837"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 07 12:49:04 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 1t910Y-0006Td-L4 for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Nov 2024 12:49:02 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t90zk-00006E-45; Thu, 07 Nov 2024 06:48:15 -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 1t90zX-000062-S1 for emacs-devel@gnu.org; Thu, 07 Nov 2024 06:47:59 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t90zX-0000xm-7l; Thu, 07 Nov 2024 06:47:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=YEkkoaWsrjPeA/SDKcq40/0PTaM8mvCyIk9xKMT0ItY=; b=WJNxDqH4aM95taK7HeEg RxpUMoCBQ94/uz25Hfm5FMX3CcYqlfHpQSExVqM69ucM4CSqfa2TpdmfeganFIvhocuZjf9OsHIYV eaU2Qqq4O+YaC9MpYY97ZYT0VbmGeq9Y87y4oMvsOn6lt9H1SueoAXCqYoMnilzYLkK3LLcAztgLw k6ClzVBDGvPSQBtRp0d8/y0I83McQX/IqhsCafgqHE24j9k2M/0Fd4YtFueiwOGew28CoUtRRxfdC fHTR0nU7v5/sJ1T6MzhMjk9FAD74lwIvhFNbq7ERisSCO9O4tKUbG4ebZDDymZnAdUNvbBei0OQ7X kO+FWfc48Snqeg==; In-Reply-To: <87r07nl2gf.fsf@gmail.com> (message from Robert Pluim on Thu, 07 Nov 2024 12:15:28 +0100) 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:325224 Archived-At: > From: Robert Pluim > Cc: Gerd Möllmann , > emacs-devel@gnu.org > Date: Thu, 07 Nov 2024 12:15:28 +0100 > > >>>>> On Thu, 07 Nov 2024 12:58:33 +0200, Eli Zaretskii said: > > >> From: Gerd Möllmann > >> Date: Thu, 07 Nov 2024 10:53:09 +0100 > >> > >> I was playing with multi-tty today, and I encountered strange behavior. > >> For example, using 2 terminals that have different capabilties, say > >> different TERM and/or COLORTERM, does not really work. > >> > >> (Informal example: I start an emacs server -nw in iTerm > >> (TERM=xterm-256color, COLORTERM=truecolor), then emacsclient --tty in a > >> Terminal window (TERM=xterm, COLORTERM not set) => The Emacs frame in > >> the Terminal window is obviously confused about the terminal's > >> color capabilties.) > >> > >> Is something like that worth writing a bug report? Or maybe it's already > >> 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 variables > 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=xterm-mono emacsclient -tty > > gives me a mono emacs. I wasn't talking about TERM, I was talking about COLORTERM and its ilk. TERM affects the terminfo library, COLORTERM overrides that.