Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Live Clock Causes Directory Flashing In URxvt & XTerm
- X-seq: zsh-workers 32762
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: S M <themolesbox@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Live Clock Causes Directory Flashing In URxvt & XTerm
- Date: Mon, 09 Jun 2014 09:02:34 -0700
- In-reply-to: <CAC=V-3LOe8RhuxmypJvg1-9+xCrm2og8Bodh2JQUeCsrt02GnQ@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author