Subject: bug#22154: 25.0.50; emacsclient -c "breaks" 256-color display in server

From: Eli Zaretskii <[email-masked]>
Date: Sat, 05 Sep 2020 18:31:53 +0300

> From: Lars Ingebrigtsen <[email-masked]>
> Cc: Dan Nicolaescu <[email-masked]>,  [email-masked],
>   [email-masked]
> Date: Sat, 05 Sep 2020 16:50:29 +0200
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> >> What exactly is the problem that your patch fixes?
> >
> > The fact that the default escape sequences for turning colors on or
> > off are stored in global variables that get overwritten each time
> > another tty is initialized.
> 
> I haven't tried to reproduce the bug, but it seems like you never
> applied your per-tty colour patch which (from my limited knowledge of
> the tty stuff) sounded like a good idea.  (It didn't fix the reported
> problem, but looks more correct, anyway.)

I didn't apply it because it solved only a part of the problem.  The
solution to this bug needs to solve the rest as well.