unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mario Lang <mlang@delysid.org>
To: emacs-devel@gnu.org
Subject: comint-preoutput-filter-functions and flickering redisplay in TTY
Date: Tue, 03 Jun 2014 13:59:29 +0200	[thread overview]
Message-ID: <87r4366w66.fsf@fx.delysid.org> (raw)

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?

-- 
Thanks,
  ⡍⠁⠗⠊⠕



             reply	other threads:[~2014-06-03 11:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-03 11:59 Mario Lang [this message]
2014-06-03 12:27 ` comint-preoutput-filter-functions and flickering redisplay in TTY Nicolas Richard
2014-06-03 13:12   ` Mario Lang
2014-06-04 10:36     ` Nicolas Richard
2014-06-04 12:30   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r4366w66.fsf@fx.delysid.org \
    --to=mlang@delysid.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).