zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: S M <themolesbox@gmail.com>, zsh-workers@zsh.org
Subject: Re: Live Clock Causes Directory Flashing In URxvt & XTerm
Date: Mon, 09 Jun 2014 09:02:34 -0700	[thread overview]
Message-ID: <140609090234.ZM21550@torch.brasslantern.com> (raw)
In-Reply-To: <CAC=V-3LOe8RhuxmypJvg1-9+xCrm2og8Bodh2JQUeCsrt02GnQ@mail.gmail.com>

On Jun 9,  2:50am, S M wrote:
}
} So as example, 'cd /etc/' then tap tab to see the directory, try this in a
} directory with a small amount of directories, or open the term full screen
} to see a huge directory, but play with it, and at that point the terminal
} starts flashing.

This is happening because the completion list gets erased and redrawn each
time there is a 'zle reset-prompt' call.  This in turn happens because
zle doesn't know whether the prompt changed size (new number of lines,
etc.) since the last time it was repainted, and the completion listing
code is a pluggable module that doesn't know what else zle may have done,
so the only way they can collectively be sure to keep a clean display is
to do a full refresh.

Consider putting the live clock in your terminal title bar instead of in
the prompt, or update it less than once per second as you've already
tried.


  parent reply	other threads:[~2014-06-09 16:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-09 12:50 S M
2014-06-09 13:19 ` Frank Terbeck
2014-06-09 16:02 ` Bart Schaefer [this message]
2014-06-10  2:05   ` S M
2014-06-12 23:46     ` S M

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

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

  git send-email \
    --in-reply-to=140609090234.ZM21550@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=themolesbox@gmail.com \
    --cc=zsh-workers@zsh.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.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).