Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Configuring Keys F1 to F12
Dan Nelson wrote in news:20110211162725.GG66849@xxxxxxxxxxxxxxxx:
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author