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: Mon, 29 Aug 2022 13:25:06 -0700 Message-ID: References: <83edx1znjl.fsf@gnu.org> <83czclzms4.fsf@gnu.org> <83ler7vx3o.fsf@gnu.org> <838rn6x4h2.fsf@gnu.org> <834jxux3kd.fsf@gnu.org> <831qsyx2lr.fsf@gnu.org> Reply-To: Dmitrii Kuragin Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e0009805e7670fbc" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11586"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , 57434@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 29 22:26:28 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 1oSlL1-0002mS-Dz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 22:26:27 +0200 Original-Received: from localhost ([::1]:60962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSlL0-0001gB-8u for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 16:26:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSlKg-0001cc-Vf for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 16:26:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44225) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSlKb-00089Q-Uz for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 16:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSlKb-0005Lh-QH for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 16:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitrii Kuragin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Aug 2022 20:26:01 +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.166180472620518 (code B ref 57434); Mon, 29 Aug 2022 20:26:01 +0000 Original-Received: (at 57434) by debbugs.gnu.org; 29 Aug 2022 20:25:26 +0000 Original-Received: from localhost ([127.0.0.1]:33974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSlK1-0005Kr-I8 for submit@debbugs.gnu.org; Mon, 29 Aug 2022 16:25:25 -0400 Original-Received: from mail-yw1-f178.google.com ([209.85.128.178]:43992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSlJz-0005Ke-8m for 57434@debbugs.gnu.org; Mon, 29 Aug 2022 16:25:23 -0400 Original-Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-333a4a5d495so224166437b3.10 for <57434@debbugs.gnu.org>; Mon, 29 Aug 2022 13:25:23 -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=kWVFXjhDUJ67eC2ZQgiINV4Kk2SNf/lb81J5wflr6Z0=; b=qmNySQ3z8f43dtIBLj+ChOaY8nAA3oywRgncOxWaTAbpYD1uNT1I0QIx6uW4sIqW+h XGT3JtQuIqMX/UYn2+CwUAC/RFObmCGaddLJkCDvpcqNlm3AsRIAJl+HzrhDUhqFXLjW n6AP/cySPvcEtZbvarhv8gb/eeFKp94FSwwLbXif1/I55sh2xg+lIUYKR6ndelOGI8LV N6qh9/ACjSJCec6codG2r0Tf0fnLzuFdlS956MU+7gTXkLVYaUyJwolI51rQQ7gBNXoD iKjogabHHJ+1aHfY97Ri4pwFzzSG+9GeeWMhRVm2OWdtaMgTJqf1mXKMCgJ7yRCnywZf OfSg== 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=kWVFXjhDUJ67eC2ZQgiINV4Kk2SNf/lb81J5wflr6Z0=; b=XVpz9t+6KSXkeft9OgQGy65UwUkCKGsSStYjmLpq/VoxYtGcjqYpg4PzwJcKrBYfJa 7rzCli+Ai4krgefzgab0KHo/+uJPiLic4cct/khQ+gWdJ0owjM4FgGW8qrqfiFxNKGpI gZ+fDmVDXlraYOD3g46Z+/ScFvVq9cKprB2K/vlb+TnuBRDOvpN/+INb24SzN+AB+WQO QCElMX4t/ZSVZ2enP+XWXoK//5cuvFnB5yqBAF1m1bOmJm+x7xST/vdaq7QaARl8l3J1 mYpUiLPQAOcEWoXhxG/iaDsCcE/RhwV2HAc7Ru6N6hfaE0HIiE/Cy+hSr3+oTqe+MyMe V/Ng== X-Gm-Message-State: ACgBeo11BgcSfDyZ0QjShux30fyKWtwH+0uUtB4SLRRANkzn+NmAW0gf cSNpHqAt9Hy7+3jmt5sh80hq1SwyDiQd3BuTGg9MuduwWTK5eQ== X-Google-Smtp-Source: AA6agR6Ssr6auYp+rMULJlVEztyzIUSTMTqNR98pf3Gnn1zW+Utur6P0tMsBpc/IzaK8Tbd/Hwnid1YZgj+PBo2gGis= X-Received: by 2002:a81:4d07:0:b0:337:6851:c92f with SMTP id a7-20020a814d07000000b003376851c92fmr11603391ywb.416.1661804717510; Mon, 29 Aug 2022 13:25:17 -0700 (PDT) In-Reply-To: <831qsyx2lr.fsf@gnu.org> 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:241068 Archived-At: --000000000000e0009805e7670fbc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable So far: ``` :~/Desktop% tput al; echo $? 0 :~/Desktop% tput AL; echo $? 1%dL0 :~/Desktop% tput dl; echo $? 0 :~/Desktop% tput DL; echo $? 1%dM0 :~/Desktop% tput sf; echo $? 0 0~/Desktop% tput sr; echo $? :~/Desktop% tput wi; echo $? tput: unknown terminfo capability 'wi' 4 :~/Desktop% tput cs; echo $? %p1%d;%p2%dr0 :~/Desktop% tput cS; echo $? tput: unknown terminfo capability 'cS' 4 ``` Seems like Mac Os doesn't support "wi", but the condition is still going to be true. ``` tty->line_ins_del_ok =3D 0; ``` make the emacs really smooth w/o any flickering. On Mon, Aug 29, 2022 at 12:37 PM Eli Zaretskii wrote: > > From: Dmitrii Kuragin > > Date: Mon, 29 Aug 2022 12:26:07 -0700 > > Cc: Gerd M=C3=B6llmann , > > 57434@debbugs.gnu.org > > > > I tried different terminal emulators, Alacritty, iTerm2, Terminal.app > (stock). All of them show the same issue. > > So, it is not a terminal emulator. > > If this happens with all terminal emulators on macOS, we should reset > the line_ins_del_ok flag for macOS. Look in term.c, where it is > initialized by consulting various terminfo features supported by the > terminal. If all the features it consults indeed work on macOS, then > simply say something like > > #ifdef DARWIN_OS > tty->line_ins_del_ok =3D 0; > #else > ... the current code... > #endif > > and see if the problem goes away. > > Gerd, do you see the same on your system? > --=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. --000000000000e0009805e7670fbc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
So far:
```
:~/Desktop% tput al; echo $= ?
0
:~/Desktop% tput AL; echo $?
1%dL0
:~/Desktop% tput dl; ech= o $?
0
:~/Desktop% tput DL; echo $?
1%dM0
:~/Desktop% tput sf; = echo $?

0
0~/Desktop% tput sr; echo $?
:~/Desktop% tput wi; ec= ho $?
tput: unknown terminfo capability 'wi'
4
:~/Desktop%= tput cs; echo $?
%p1%d;%p2%dr0
:~/Desktop% tput cS; echo $?
tput:= unknown terminfo capability 'cS'
4
```

=
Seems like Mac Os doesn't support "wi", but the cond= ition is still going to be true.

```
tty->line_i= ns_del_ok =3D 0;
```

make the emacs really smooth=C2=A0w/o any fl= ickering.

On Mon, Aug 29, 2022 at 12:37 PM Eli Zaretskii <eliz@gnu.org> wrote:
<= /div>
> From: Dmitrii K= uragin <kuragin@= google.com>
> Date: Mon, 29 Aug 2022 12:26:07 -0700
> Cc: Gerd M=C3=B6llmann <gerd.moellmann@gmail.com>,
>=C2=A0 =C2=A0 =C2=A0 =C2=A057434@debbugs.gnu.org
>
> I tried different terminal emulators, Alacritty, iTerm2, Terminal.app = (stock). All of them show the same issue.
> So, it is not a terminal emulator.

If this happens with all terminal emulators on macOS, we should reset
the line_ins_del_ok flag for macOS.=C2=A0 Look in term.c, where it is
initialized by consulting various terminfo features supported by the
terminal.=C2=A0 If all the features it consults indeed work on macOS, then<= br> simply say something like

=C2=A0 #ifdef DARWIN_OS
=C2=A0 =C2=A0 tty->line_ins_del_ok =3D 0;
=C2=A0 #else
=C2=A0 ... the current code...
=C2=A0 #endif

and see if the problem goes away.

Gerd, do you see the same on your system?


--
*If yo= u get an email from me outside of the 9-5 it is=C2=A0not=C2=A0becaus= e I'm always on or expect an immediate response from you; it is because= of=C2=A0work flexibility.=C2= =A0=C2=A0Evening and weekend emails= are a sign I allocated some regular working hours for other things (such a= s family, gym, friends,...).=C2=A0 And I encourage you to feel free to do t= he same.

--000000000000e0009805e7670fbc--