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.bugs Subject: bug#57434: 28.1.91; Terminal Emacs Mac OS flickering. Date: Thu, 08 Sep 2022 11:20:32 +0300 Message-ID: <83illyffan.fsf@gnu.org> References: <83mtbks7mo.fsf@gnu.org> <837d2mqm98.fsf@gnu.org> <8335daqlsa.fsf@gnu.org> <83k06komhi.fsf@gnu.org> <83pmgcmmf1.fsf@gnu.org> <83leqvgib2.fsf@gnu.org> <83r10mfkn1.fsf@gnu.org> 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="19097"; mail-complaints-to="usenet@ciao.gmane.io" Cc: kuragin@google.com, 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 Thu Sep 08 10:22:30 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 1oWCnt-0004nL-NG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 10:22:29 +0200 Original-Received: from localhost ([::1]:54910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWCns-0000TY-Ph for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 04:22:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWCmU-0006aJ-Ol for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 04:21:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWCmU-0008KY-Fm for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 04:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oWCmU-0006CP-Aq for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 04:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Sep 2022 08:21: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.166262525323790 (code B ref 57434); Thu, 08 Sep 2022 08:21:02 +0000 Original-Received: (at 57434) by debbugs.gnu.org; 8 Sep 2022 08:20:53 +0000 Original-Received: from localhost ([127.0.0.1]:57160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWCmK-0006Be-N6 for submit@debbugs.gnu.org; Thu, 08 Sep 2022 04:20:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWCmK-0006BT-01 for 57434@debbugs.gnu.org; Thu, 08 Sep 2022 04:20:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45032) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWCmE-0008Je-LF; Thu, 08 Sep 2022 04:20:46 -0400 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=5kJMxFeFvpYjAa5+n+0ADTR8AMJvr3pm/HY0m0xyVL0=; b=RzyuFuIAW7Ikeu+qWMnH yIDkVJs6Un4r6GPPU9S+V+D9qwrAAtj733jyHyLKnuXU8vwQ3OP8H4AlGwpmkrBCAXjdtKEPg8ZxX cxPUovnYVJnkC3tt/9BW8bgx1bgZdR4eUcOPkbv3dTj6YA9oAT5Ubh/+fq8CxptvmdE6KQlb1RaV6 5/u67TDF7ylEWkpaKme1ssdBo2Ci4jvBBQGgHCd9Xw5Jgd9YZbuKgfIgRFxI3VVIrS9EisDOYKk3a lP9LXGgHVtTFAC8dgV31Da+vTFI/mqfc7jFbudVQoa8LYtJ1u/H671PZn7DIB9qY1O7KUh0CyAh+X Qvfo1db1IumvBw==; Original-Received: from [87.69.77.57] (port=4540 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWCmE-0008G0-4t; Thu, 08 Sep 2022 04:20:46 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Thu, 08 Sep 2022 08:43:46 +0200) 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:241839 Archived-At: > From: Gerd Möllmann > Cc: kuragin@google.com, 57434@debbugs.gnu.org > Date: Thu, 08 Sep 2022 08:43:46 +0200 > > Eli Zaretskii writes: > > > So you are saying at this point only my last alternative, i.e. a > > variable exposed to Lisp, is a reasonable way ahead? Until, that is, > > those emulators get their act together and agree on some standard way > > of detecting the need for synchronized updates? > > Yes, I think an option is currently all we can do. And somehow define > what to send to the terminal, P1 or P2. What is P1 and what is P2? > I installed iTerm2 just now, which implements P2 at least. iTerm2 has a > preference options to switch GPU acceleration on/off. iTerm2 uses > TERM=xterm256-color, independent of the GPU setting. So matching TERM > wouldn't work with iTerm2. The query control sequence of P2 seems to > return if GPU accel is on or off on iTerm2. What is the "query control sequence"? > >> I know Sync as an xterm extension, although I don't remember what it is > >> for. It's a non-standard terminfo capability which is only shown with > >> infocmp -x. > >> > >> Neither P1 nor P2 mention Sync in any way. > > > > Does terminfo return the Sync capability on those terminals, as it > > returns the standard ones? That is, can we test for it inside > > init_tty? > > I think so. > > BTW, iTerm2 doesn't seem to define Sync. Kitty does. It's a mess. We could at least detect that when terminfo returns non-nil for Sync. Do you happen to know where is the definitive documentation of Sync?