Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: issue with cursor down bindkey setting



On 9 February 2012 19:37, Leander Jedamus <ljedamus@xxxxxx> wrote:
> Hi!
>
> I have some problems setting the arrow keys inside zsh. What I do is:
> $ bindkey "$terminfo[cuu1]" history-substring-search-up
> $ bindkey "$terminfo[cud1]" history-substring-search-down
>
> The first command works as expected, the second does not, because
> $terminfo[cud1] is bound to ^J, not to ^[[B
>
> $ bindkey "$terminfo[cuu1]"
> "^[[A" history-substring-search-up
> $ bindkey "$terminfo[cud1]"
> "^J" history-substring-search-down
>
> So where is the assoziative array terminfo set? Can I change that?

http://zshwiki.org/home/zle/bindkeys

(you're using the wrong keys (array keys), it should be kcu?1)

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author