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: Mon, 29 Aug 2022 22:17:06 +0300 Message-ID: <834jxux3kd.fsf@gnu.org> References: <83edx1znjl.fsf@gnu.org> <83czclzms4.fsf@gnu.org> <83ler7vx3o.fsf@gnu.org> <838rn6x4h2.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="19480"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 57434@debbugs.gnu.org To: Dmitrii Kuragin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 29 21:17:22 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 1oSkGA-0004ta-6X for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 21:17:22 +0200 Original-Received: from localhost ([::1]:42292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSkG9-0000PJ-6w for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 15:17:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSkFr-0000OJ-DD for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 15:17:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSkFq-0005dK-K3 for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 15:17:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSkFq-0003ai-FW for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 15: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: Mon, 29 Aug 2022 19: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.166180061613789 (code B ref 57434); Mon, 29 Aug 2022 19:17:02 +0000 Original-Received: (at 57434) by debbugs.gnu.org; 29 Aug 2022 19:16:56 +0000 Original-Received: from localhost ([127.0.0.1]:33860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSkFk-0003aK-GA for submit@debbugs.gnu.org; Mon, 29 Aug 2022 15:16:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSkFi-0003a7-MF for 57434@debbugs.gnu.org; Mon, 29 Aug 2022 15:16:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSkFd-0005aW-8E; Mon, 29 Aug 2022 15:16:49 -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=fZJ606zncBevFafb4roblSr6x0dWcOwK8YMs+eUhTmQ=; b=GASfiznNCcZFWDMzm83E d5Jj2xe461+J1IQK0EQOpQaSiKTtPLwh6h2/w3szdpONxG0ebvirFQ33ytKvOaGOcxc4+/6YzULAS 2DG9wb/b46WxTG6ZgrJgyDWuR4Eb2m74HMz7Ro6VQLhKc639miS6wA3XQ5xj7oNfBMLUWcWSgv40f UMS1AajZqR/8WMhPeEVthKnOcu/yBsmoP2DiYbG0upIsXcoBroiFdLsD1NCMdIS8C0GxEZYjDdOMK vNULtSCnf7HVQGxrox9Fy44dlnPL5IzdPJwbNQAMSaIxSDa7pf209w7rjkdg59+UMrOSvvPToTH4s rZjVBWt1QUR4fQ==; Original-Received: from [87.69.77.57] (port=2577 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 1oSkFZ-0000l3-4E; Mon, 29 Aug 2022 15:16:47 -0400 In-Reply-To: (message from Dmitrii Kuragin on Mon, 29 Aug 2022 12:04:38 -0700) 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:241064 Archived-At: > From: Dmitrii Kuragin > Date: Mon, 29 Aug 2022 12:04:38 -0700 > Cc: Gerd Möllmann , > 57434@debbugs.gnu.org > > More generally, we need to understand why insertion cause flickering > whereas writing to the terminal does not. > > I agree. > > Let's ignore what I said about flushing. My assumption was that we draw the terminal content in multiple steps > in different places. For example, we remove some lines, then do some logic, then we draw chars on top of it. > So, if we have a lag between the operations and the terminal refreshes the screen we see only part of the > content. But, as I said. Let's ignore that and if you have any guidance on how I can debug it further, it would be > awesome. > > Flickering is consistent for some specific area. If I scroll between 2 lines, back-and-forth Emacs flickers > consistently. > > What would be my next steps to give more debug information? Can you try some other terminal emulator? I'm interested to know whether all of them flicker, or just some. Another idea is to disable the insert/delete optimization entirely, by making sure the line_ins_del_ok flag of the terminal is reset. The question, of course, is what to base this on -- could be macOS or just some specific terminal type.