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 12:16:07 +0300 Message-ID: <83a67afcq0.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> <83illyffan.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="27224"; 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 11:19:16 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 1oWDgq-0006ul-HF for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 11:19:16 +0200 Original-Received: from localhost ([::1]:55478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWDgo-0005NA-Sl for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 05:19:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWDeg-0004Nd-UX for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 05:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40331) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWDeg-0000NN-Lv for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 05:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oWDeg-0007g2-HN for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 05:17: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 09:17: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.166262858929464 (code B ref 57434); Thu, 08 Sep 2022 09:17:02 +0000 Original-Received: (at 57434) by debbugs.gnu.org; 8 Sep 2022 09:16:29 +0000 Original-Received: from localhost ([127.0.0.1]:57262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWDe9-0007fA-4x for submit@debbugs.gnu.org; Thu, 08 Sep 2022 05:16:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWDe7-0007es-Is for 57434@debbugs.gnu.org; Thu, 08 Sep 2022 05:16:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43128) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWDe2-0000Kp-B8; Thu, 08 Sep 2022 05:16:22 -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=5iNQEaej4d5Q1OA7i78muXfCkm/rWt9j12n0HP7MYzU=; b=Edd03C+JRVOCiQUWMOQl ja66gTYfeZzY/PFi6dy2O41RqOYDJtOCqR4IAx+0BBp9egysL4+4m2xG8S8kcvb5NxZbMjFfvKBp2 Zna0TK8WfDM+TN8cpMacSLb1gAMZXXF5Sd99fbQKnNJIsL768NpFS+J3WmPk8mU7OMqt/hDXddGSR sdrayoz0fMoF33CkMMH+JjIe50jhy4d/+s1kGPIiNMYJdA340ngXoz86W2f8x4o6WGBsP0X1KQHxE 8KVkbZrqSSmR6bv/SC8LtEQF2ajxrMcaI7pZ/WkMgp8H2dQnQ5JbrjrZfpjDKhD8O3OSZavsN5qwu mSTZxluwqgBp5Q==; Original-Received: from [87.69.77.57] (port=3982 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 1oWDe1-0008IL-Pk; Thu, 08 Sep 2022 05:16:22 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Thu, 08 Sep 2022 10:43:49 +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:241850 Archived-At: > From: Gerd Möllmann > Cc: kuragin@google.com, 57434@debbugs.gnu.org > Date: Thu, 08 Sep 2022 10:43:49 +0200 > > Eli Zaretskii writes: > > > What is P1 and what is P2? > > The two proposals that we know of. > > > > >> 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"? > > Proposal P2 defines 3 control sequences. In addtion to begin/end, it > contains a control sequence to determine the status of synchronized > updates: on, off, permanently on, permanently off (AFAIU). I guess by P1 you mean these two sequences: BSU: ESC P = 1 s ESC \ ESU: ESC P = 2 s ESC \ whereas by P2 you mean these: DECRQM: ESC [ ? 2026 $ p DECRPM: ESC [ ? 2026 ; n $ y (with n = 0..4, and 0 or 4 means "no support") BSU: ESC [ ? 2026 h ESU: ESC [ ? 2026 l > > Do you happen to know where is the definitive documentation of Sync? > > Sorry, I don't know a definitive documentation. And any documentation at all? Anyway, given the problems usually related to querying terminals about potentially unsupported features, and the general mess in this field, I think our best bet is to have a function that could switch the frame-update hooks between these 3 states: . unused . used with P1 BSU/ESU sequences . used with P2 BSU/ESU sequences WDYT?