From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29539 invoked by alias); 12 Jun 2014 23:46:12 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32770 Received: (qmail 16191 invoked from network); 12 Jun 2014 23:46:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 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=4vwXAOD4oHGa3QuGAthyVDsk0BaPQOYoFXgmHVwd0Uw=; b=lUZ0KB+BtNB2Z+fbaYp0Ztd5z8gNIYFockmBLy3y24mKXvm4VaVYsAJtz3SDy2FJp3 27468n1axm7l1MgQ+FqVNO9uMLFeV4+PxViwz+DaZv5exjSWwryFOXLEV+ahMCn1II5E q8ZiY2+ztBZRlHmaDbkSX6WKTs5PUs5vyQHV5U3hh49k8M19kZ7Gms9x2twnZL062ujr tkaskMeArA4+WOjLcbV8Wlz2O4e2+aFYOsNEKJeN+O+x4Gv0oDPWyF9ym+xC1x1k4OFA eVdUTPP3fECD+8oiioDkiWupZerJ42fE6vug/7kFVdOTi/CMRqJDSbBG7WoEF5DnaMx0 iTcg== MIME-Version: 1.0 X-Received: by 10.60.94.231 with SMTP id df7mr49681545oeb.26.1402616765882; Thu, 12 Jun 2014 16:46:05 -0700 (PDT) In-Reply-To: References: <140609090234.ZM21550@torch.brasslantern.com> Date: Thu, 12 Jun 2014 13:46:05 -1000 Message-ID: Subject: Re: Live Clock Causes Directory Flashing In URxvt & XTerm From: S M To: Bart Schaefer Cc: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary=089e0117618316285404fbac2ae4 --089e0117618316285404fbac2ae4 Content-Type: text/plain; charset=UTF-8 I'm still a noob with all this and someone said to make my .zshrc section like this now, I'm assuming is correct? THANKS again! :) # keys ----------------------------------------------------------------- #+BEGIN_SRC shell if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then # If these entries are not available for a given terminal, then # that terminal is in keyboard-transmit mode by default. That # means, everything is well without any additional action. If # not, this can do the trick: function zle-line-init () { echoti smkx } function zle-line-finish () { echoti rmkx } zle -N zle-line-init zle -N zle-line-finish fi #+END_SRC 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 On Mon, Jun 9, 2014 at 4:05 PM, S M wrote: > 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 > 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. >> > > --089e0117618316285404fbac2ae4--