zsh-users
 help / color / mirror / code / Atom feed
* issue with cursor down bindkey setting
@ 2012-02-09 18:37 Leander Jedamus
  2012-02-09 19:08 ` Mikael Magnusson
  0 siblings, 1 reply; 2+ messages in thread
From: Leander Jedamus @ 2012-02-09 18:37 UTC (permalink / raw)
  To: zsh-users

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?

Thanks in advance
Leander Jedamus



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: issue with cursor down bindkey setting
  2012-02-09 18:37 issue with cursor down bindkey setting Leander Jedamus
@ 2012-02-09 19:08 ` Mikael Magnusson
  0 siblings, 0 replies; 2+ messages in thread
From: Mikael Magnusson @ 2012-02-09 19:08 UTC (permalink / raw)
  To: Leander Jedamus; +Cc: zsh-users

On 9 February 2012 19:37, Leander Jedamus <ljedamus@web.de> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-09 19:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-09 18:37 issue with cursor down bindkey setting Leander Jedamus
2012-02-09 19:08 ` Mikael Magnusson

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).