zsh-users
 help / color / mirror / code / Atom feed
From: zzapper <david@tvis.co.uk>
To: zsh-users@zsh.org
Subject: Re: Configuring Keys F1 to F12
Date: Fri, 11 Feb 2011 16:53:23 +0000 (UTC)	[thread overview]
Message-ID: <Xns9E89ABCA9D593zzappergmailcom@80.91.229.10> (raw)
In-Reply-To: <20110211162725.GG66849@dan.emsphone.com>

Dan Nelson wrote in news:20110211162725.GG66849@dan.emsphone.com:

> In the last episode (Feb 11), zzapper said:

> 
> # usage: bindtc <cap> <default> <string>
> 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


  reply	other threads:[~2011-02-11 16:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-10 14:42 zzapper
2011-02-10 15:34 ` Anthony Charles
2011-02-10 17:23   ` zzapper
2011-02-10 17:39   ` zzapper
2011-02-11  9:57     ` Anthony Charles
2011-02-11 15:02       ` zzapper
2011-02-11 16:27         ` Dan Nelson
2011-02-11 16:53           ` zzapper [this message]
2011-02-10 18:00 ` Bart Schaefer

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=Xns9E89ABCA9D593zzappergmailcom@80.91.229.10 \
    --to=david@tvis.co.uk \
    --cc=zsh-users@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).