From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitrii Kuragin via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57434: 28.1.91; Terminal Emacs Mac OS flickering. Date: Wed, 7 Sep 2022 09:11:32 -0700 Message-ID: References: <142be6aa-f25f-fad2-5597-6e02b0e3e4f6@gmail.com> <8335dcu0sg.fsf@gnu.org> <83mtbks7mo.fsf@gnu.org> <837d2mqm98.fsf@gnu.org> <8335daqlsa.fsf@gnu.org> <83k06komhi.fsf@gnu.org> <83pmgcmmf1.fsf@gnu.org> Reply-To: Dmitrii Kuragin Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000a75ee405e8189148" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19440"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 57434@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 07 18:12:42 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oVxfO-0004vZ-JM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 18:12:42 +0200 Original-Received: from localhost ([::1]:42502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVxfN-0002i2-Kr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 12:12:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVxel-0002fm-26 for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 12:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39021) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVxek-0007Ri-Pd for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 12:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVxek-0004GU-Fs for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 12:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitrii Kuragin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Sep 2022 16:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57434 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57434-submit@debbugs.gnu.org id=B57434.166256711316378 (code B ref 57434); Wed, 07 Sep 2022 16:12:02 +0000 Original-Received: (at 57434) by debbugs.gnu.org; 7 Sep 2022 16:11:53 +0000 Original-Received: from localhost ([127.0.0.1]:55953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVxea-0004G5-Sa for submit@debbugs.gnu.org; Wed, 07 Sep 2022 12:11:53 -0400 Original-Received: from mail-yb1-f169.google.com ([209.85.219.169]:41665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVxeY-0004Fr-05 for 57434@debbugs.gnu.org; Wed, 07 Sep 2022 12:11:51 -0400 Original-Received: by mail-yb1-f169.google.com with SMTP id 130so22309028ybw.8 for <57434@debbugs.gnu.org>; Wed, 07 Sep 2022 09:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=wo1tL1mtHBPTnzmyQtZAO8+vQ2t5GeyMjLgtPqnJyNI=; b=MppNtWyKTa5ZV6AlMAdHFpLyABLYYwVtTKl62j3Dfm5zORkc547DIK4Ukjzwbog7+c 7QGyVnv1BaUfe34xFPutmAabPubbP/DbSOq82xxgStjYN4QuPIOmo4pk7o4ULk6oRC3e tCBYm+d+DNAbYFh/v14D3QWl89LZJCH+wP/W3Sm0dQCHDQMPiwP9DAPK/FxS7XX0h5fv cuij3iHXPKepZEthlFIdgHMI6o3En5QelvUFV4oRHW15dH9GgEB993gyxNsdu9KQrmKp 2agYVhPd3eOULJ2ZKZOZnqvFLxDs9+aGreKLkzSEsmUmbMA5xCiwUV933IhqBVgwRAj9 1Tvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=wo1tL1mtHBPTnzmyQtZAO8+vQ2t5GeyMjLgtPqnJyNI=; b=xPyRJTc8A/hFNE6ArLnHVpQfIebyV2WAUDHZdV/gPKd/oyIEgcbXNRqf/GeOraOeyL ybHlMR1i+79zo3sT8T8Nb56gupKy/atf4nOpFKSYjuSlRc0QiDAkNtj9dm/1j22wr07j 0YqT1MkpIo+5XMGWZccX49rwsJd/i/7FpqL1qKtU4BbRYZh+81AH5V9PtNwDfDqji+A9 BlHt/pjE3DqyKnopnYtV++plwZ/CzVyRS9KX4206kLShPdGoyDF3f4gHAtB87W9epx2f mWUzuR1rxnLcjKvwgnGQ3ylKgl0s2oiupmbHDpXhuB4AtzeZ15T4LmWiV8JH4DxPMxyt Lr8g== X-Gm-Message-State: ACgBeo0Gqw1Day5F1GS/OmEQTdG5xMKk5rQAXUKy/VPJ4zpAPWYpN5Pt FHO224uFRQfw8OLishW+0fsK/9ocQfXWHscwFqiF6A== X-Google-Smtp-Source: AA6agR56sx4OTgIQMrHoKZK2lLtb9YrjNjmlL1Qx3WJWJ1SFx/WwHSpvOKrABgKUEnJYveG5Rp3VeouIVXyls3mJtak= X-Received: by 2002:a25:c1c6:0:b0:66f:5acc:7fb8 with SMTP id r189-20020a25c1c6000000b0066f5acc7fb8mr3387528ybf.634.1662567104003; Wed, 07 Sep 2022 09:11:44 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241788 Archived-At: --000000000000a75ee405e8189148 Content-Type: multipart/alternative; boundary="000000000000a75ee205e8189146" --000000000000a75ee205e8189146 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Sorry I made you wait. I tried the patch (see attachments) and everything worked perfectly. No flickering. I tried to implement the second spec, but it didn't work (at least in Alacritty). But, I can try to add support for both. BTW, tmux uses the sync update for their own TUI and they check "Sync" terminal capability. Do we need to do the same or we can just send the escapes and hope the unsupported terminal would just recover? Side note: I still have the issue when I run emacs inside of tmux, but it is due to lack of support from tmux side. I created a bug and will try to implement the functionality in tmux sooner or later. See https://github.com/tmux/tmux/issues/3325 foe details. I assume, in the case of tmux, the multiplexer just consumes the escape codes and doesn't send them to the parent terminal. On Tue, Sep 6, 2022 at 9:59 PM Gerd M=C3=B6llmann wrote: > Gerd M=C3=B6llmann writes: > > > Dmitrii Kuragin writes: > > > >> Also, I tried to enable syncing and it works like a charm. > > > > So I take it that you fixed the problem that you originally reported > > with Alacritty. > > > > Could you please show a diff of what you did? > > > > Also, did you try both synchronized update proposols? > > > > https://gitlab.com/gnachman/iterm2/-/wikis/synchronized-updates-spec > > > https://gist.github.com/christianparpart/d8a62cc1ab659194337d73e399004036 > > > > If you didn't try both, could you please do and report back? > > > >> The next problem is I need to configure tmux to somehow respect it. > > > > Sorry, can't help with that, I don't know tmux. > > Ping. > --=20 *If you get an email from me outside of the 9-5 it is *not* because I'm always on or expect an immediate response from you; it is because of work flexibility . Evening and weekend emails are a sign I allocated some regular working hours for other things (such as family, gym, friends,...). And I encourage you to feel free to do the same. --000000000000a75ee205e8189146 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

Sorry I made you wait. I tr= ied the patch (see attachments) and everything worked perfectly. No flicker= ing.

I tried to implement the second spec, but it didn= 't work (at least in Alacritty). But, I can try to add support for both= .

BTW, tmux uses the sync update for their own TUI and= they check "Sync" terminal=C2=A0capability. Do we need to do the= same or we can just send the escapes and hope the unsupported terminal wou= ld just recover?

Side note: I still have the issue whe= n I run emacs inside of tmux, but it is due to lack of support from tmux si= de. I created a bug and will try to implement the functionality in tmux soo= ner or later. See http= s://github.com/tmux/tmux/issues/3325 foe details. I assume, in the case= of tmux, the multiplexer just consumes the escape codes and doesn't se= nd them to the parent terminal.


On Tue, Sep 6, 2022 at 9:= 59 PM Gerd M=C3=B6llmann <ge= rd.moellmann@gmail.com> wrote:
Gerd M=C3=B6llmann <gerd.moellmann@gmail.com> writes:
> Dmitrii Kuragin <kuragin@google.com> writes:
>
>> Also, I tried to enable syncing and it works like a charm.
>
> So I take it that you fixed the problem that you originally reported > with Alacritty.
>
> Could you please show a diff of what you did?
>
> Also, did you try both synchronized update proposols?
>
> https://gitlab.com/gnachman= /iterm2/-/wikis/synchronized-updates-spec
> https://gist.github.co= m/christianparpart/d8a62cc1ab659194337d73e399004036
>
> If you didn't try both, could you please do and report back?
>
>> The next problem is I need to configure tmux to somehow respect it= .
>
> Sorry, can't help with that, I don't know tmux.

Ping.


--
*If you get an email from me outside of the 9-5 it is=C2= =A0not=C2=A0because I'm always on or expect an immediate respons= e from you; it is because of=C2=A0<= a href=3D"http://www.inc.com/john-boitnott/how-flexible-hours-can-create-a-= better-work-life-balance.html" style=3D"color:rgb(17,85,204)" target=3D"_bl= ank">work flexibility.=C2=A0=C2=A0= Evening and weekend emails are a sign I allocated some regular working hour= s for other things (such as family, gym, friends,...).=C2=A0 And I encourag= e you to feel free to do the same.

--000000000000a75ee205e8189146-- --000000000000a75ee405e8189148 Content-Type: application/octet-stream; name="0001-Implement-Synchrnized-Update-for-frame-rendering-in-.patch" Content-Disposition: attachment; filename="0001-Implement-Synchrnized-Update-for-frame-rendering-in-.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l7rtdbb40 RnJvbSBkZjYzYzI2MTZkOTliOGQ5MTYyYzljNDIyYzUwZGMzYzhkZTY1ZDI1IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBEbWl0cmlpIEt1cmFnaW4gPGt1cmFnaW5AY2hyb21pdW0ub3Jn PgpEYXRlOiBTYXQsIDMgU2VwIDIwMjIgMDk6MzA6NDggLTA3MDAKU3ViamVjdDogW1BBVENIXSBJ bXBsZW1lbnQgU3luY2hybml6ZWQgVXBkYXRlIGZvciBmcmFtZSByZW5kZXJpbmcgaW4gVFRZLgoK U3BlYzogaHR0cHM6Ly9naXRsYWIuY29tL2duYWNobWFuL2l0ZXJtMi8tL3dpa2lzL3N5bmNocm9u aXplZC11cGRhdGVzLXNwZWMKCiogc3JjL3Rlcm0uYyAoc2V0X3R0eV9ob29rcywgdHR5X3VwZGF0 ZV9lbmQsIHR0eV91cGRhdGVfYmVnaW4pOiBQdXQKICBlc2NhcGUgc2VxdWVuY2UgYXQgdGhlIGJl Z2lubmluZyBhbmQgZW5kIG9mIHRoZSBmcmFtIHVwZGF0ZSBpbiBvcmRlcgogIHRvIGluZm9ybSB0 ZXJtaW5hbCBhYm91dCBzeW5jaG9uaXphdGlvbiBwb2ludHMuCi0tLQogc3JjL3Rlcm0uYyB8IDEw ICsrKysrKysrKysKIDEgZmlsZSB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