emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-tty


From: Eli Zaretskii
Subject: Re: Multi-tty
Date: Fri, 08 Nov 2024 13:49:49 +0200

> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>,  Stefan Monnier
>  <monnier@iro.umontreal.ca>,  emacs-devel@gnu.org
> Date: Fri, 08 Nov 2024 12:09:36 +0100
> 
> Robert Pluim <rpluim@gmail.com> writes:
> 
> >>>>>> On Fri, 08 Nov 2024 10:42:58 +0100, Gerd Möllmann 
> >>>>>> <gerd.moellmann@gmail.com> 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 
> > *terminal_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 = getenv ("COLORTERM")) != NULL
> >     Gerd> +          || ((bg = egetenv ("COLORTERM")) != NULL
> >     Gerd>                && strcasecmp (bg, "truecolor") == 0))
> >     Gerd>     {
> >     tty-> TS_set_foreground =
> > "\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:
> > <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62528>
> 
> Errare humanum est.

Quidem.

Of course, we disagree about who is the human here that errs.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]