From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21272 invoked by alias); 11 Feb 2011 16:53:51 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15798 Received: (qmail 22666 invoked from network); 11 Feb 2011 16:53:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.12 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: zzapper Subject: Re: Configuring Keys F1 to F12 Date: Fri, 11 Feb 2011 16:53:23 +0000 (UTC) Organization: SuccessTheory Message-ID: References: <20110210153454.GC17063@layslair.ath.cx> <20110211095705.GD17063@layslair.ath.cx> <20110211162725.GG66849@dan.emsphone.com> X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dsl78-143-228-30.in-addr.fast.co.uk User-Agent: Xnews/2006.08.24 X-Antivirus: avast! (VPS 110211-0, 11/02/2011), Outbound message X-Antivirus-Status: Clean Dan Nelson wrote in news:20110211162725.GG66849@dan.emsphone.com: > In the last episode (Feb 11), zzapper said: > > # usage: bindtc > bindtc () > { > local keyval=${termcap[$1]:-$2} > [[ -n $keyval ]] bindkey -s $keyval $3 > } > > I use something similar to bind commands to things like pgup and pgdn, > whose escape sequences vary across terminals. With it, you can run: > > bindtc k7 "^[[18~" 'ls -l' > > which will use the termcap entry for F7, or if it's missing, will fall > back to "^[[18~". > Thanks Dan This looks useful a reference http://zshwiki.org/home/zle/bindkeys -- zzapper http://zzapper.co.uk/ Technical Tips