Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: issue with cursor down bindkey setting
- X-seq: zsh-users 16753
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Leander Jedamus <ljedamus@xxxxxx>
- Subject: Re: issue with cursor down bindkey setting
- Date: Thu, 9 Feb 2012 20:08:41 +0100
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xO7HfjIL7KLw/c6/7cjbLAf7Q8rSak2SulWz4qMKKiE=; b=HtuX7PQyvRhOXS8/NEZ2ioH6dg6i0bSsEQ4b5GUnSo4bEVQQgBQ9PtyKW2VF8jxWQH pPCvEhqm+POR5TRn5A/G80FNdEe9nU7j0ocu2xJhOM1Tn0Cweaf+q76ccUK6kny+M+IM vs9V2VYFdcnQ2cYXLc4O4CBgrn/tJd3BQpRFo=
- In-reply-to: <4F34124F.7080601@web.de>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <4F34124F.7080601@web.de>
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