From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mario Lang Newsgroups: gmane.emacs.devel Subject: comint-preoutput-filter-functions and flickering redisplay in TTY Date: Tue, 03 Jun 2014 13:59:29 +0200 Message-ID: <87r4366w66.fsf@fx.delysid.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1401796799 24092 80.91.229.3 (3 Jun 2014 11:59:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2014 11:59:59 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 03 13:59:50 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WrnNd-0000qx-Op for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2014 13:59:49 +0200 Original-Received: from localhost ([::1]:52154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrnNc-0004uL-T1 for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2014 07:59:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrnNU-0004sp-PC for emacs-devel@gnu.org; Tue, 03 Jun 2014 07:59:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrnNN-00084F-2l for emacs-devel@gnu.org; Tue, 03 Jun 2014 07:59:40 -0400 Original-Received: from fep14.mx.upcmail.net ([62.179.121.34]:62372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrnNM-00082d-Oe for emacs-devel@gnu.org; Tue, 03 Jun 2014 07:59:33 -0400 Original-Received: from edge03.upcmail.net ([192.168.13.238]) by viefep14-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20140603115930.TAJT20421.viefep14-int.chello.at@edge03.upcmail.net> for ; Tue, 3 Jun 2014 13:59:30 +0200 Original-Received: from fx.delysid.org ([80.109.200.215]) by edge03.upcmail.net with edge id 9nzV1o00X4fLMH403nzVrk; Tue, 03 Jun 2014 13:59:30 +0200 X-SourceIP: 80.109.200.215 Original-Received: from mlang by fx.delysid.org with local (Exim 4.82) (envelope-from ) id 1WrnNJ-0001Y7-48 for emacs-devel@gnu.org; Tue, 03 Jun 2014 13:59:29 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 62.179.121.34 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172285 Archived-At: Hi. chess.el can talk to internet chess servers. This is based on comint. ICS periodically announces "seeking game" messages which we collect into a separate buffer, as there are potentially many of them, which would totally clutter your comint output. For this, we use comint-preoutput-filter-functions to catch the output before it goes to the buffer. If the string arriving in comint matches, we insert it somewhere else, and return "". Now, I am noticing strange redisplay behaviour if "seeking game" messages are on in Emacs -nw. There is noticeable flickering of the whole screen. As if the screen was cleared completely, and redrawn again from scratch. But there are no big visual changes going on actually, the screen content stays largely the same. I am out of ideas on this one. Does anyone have ideas why this might be happening, and if there is some sort of work-around I could use from Lisp-world to avoid it? To reproduce: Install chess.el, call M-x chess-ics RET, login to freechess.org (as guest is OK), and wait a bit. Your screen (at least in -= nw mode) should start to flicker noticeably every once in a while. Any ideas why? --=20 Thanks, =E2=A1=8D=E2=A0=81=E2=A0=97=E2=A0=8A=E2=A0=95