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 32763
- From: S M <themolesbox@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Live Clock Causes Directory Flashing In URxvt & XTerm
- Date: Mon, 9 Jun 2014 16:05:03 -1000
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=WfVGzxQq8d/NIhzbSYEh0fcNFUPqRAY7gMD9pwoprfQ=; b=fXUwP+xX1yFTsygYxU7nLNwjmroJoxqUz5Fy3Uat4jsEILuFf9Kb+8scumdo1nIdjb 8ZgmBOUWjuaI659YrxvPB6GicSbfWVmXd2j50BUwIYR3+W4t15yh6c5oXt7Rb/L958yF HiD4o7DKIsxkJALacdT4Jr8VZLUnu3zCni6Wkn5L3osPTSiKGHavBwiyBfgmdmxCQ23Z qC8EHO2fKvN+4/5jnq1XxjeqFb8iWrJiaWRKRtfaUxlNbe30IjTGORYoJOkgXTbESvc5 mJzELqI2ahVzURMCJyYpa9bXotPWxiBSuCgwAbx1mAlSQhKexZhKPRPS7bSXORfl2quh 8Jiw==
- In-reply-to: <140609090234.ZM21550@torch.brasslantern.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> <140609090234.ZM21550@torch.brasslantern.com>
Hi Frank & Bart,
Thank you Bart, I've been able to get it better by making the time
increase, but I'll try out the titlebar too.
Frank I'm new to zsh and this is config from the distro livarp that is dead
now that I copied from.
At this point in time I'm still clueless with a lot of it.
If it's not to much trouble can you please show me how you'd correct this
keys section for any problems?
I got a little of what you said before Frank, but don't quite fully
understand?
# keys -----------------------------------------------------------------
typeset -A key
key[Home]=${terminfo[khome]}
key[End]=${terminfo[kend]}
key[Insert]=${terminfo[kich1]}
key[Delete]=${terminfo[kdch1]}
key[Up]=${terminfo[kcuu1]}
key[Down]=${terminfo[kcud1]}
key[Left]=${terminfo[kcub1]}
key[Right]=${terminfo[kcuf1]}
key[PageUp]=${terminfo[kpp]}
key[PageDown]=${terminfo[knp]}
# setup key accordingly
[[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line
[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line
[[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode
[[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char
[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-history
[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}"
down-line-or-history
[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char
[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char
Thank you both again...
Cheers
On Mon, Jun 9, 2014 at 6:02 AM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
wrote:
> 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