LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   zsh keybindings: home, end, ctrl-left etc (http://www.linuxquestions.org/questions/linux-software-2/zsh-keybindings-home-end-ctrl-left-etc-350961/)

Kropotkin 08-07-2005 09:02 PM

zsh keybindings: home, end, ctrl-left etc
 
How can one map the home, end, ctrl-left, etc keys in zsh? In the version installed with Fedora, these keys are not active. In the zsh FAQ, it gives instructions for the regular arrow keys:

Code:

bindkey "$(echotc kl)" backward-char
bindkey "$(echotc kr)" forward-char
bindkey "$(echotc ku)" up-line-or-history
bindkey "$(echotc kd)" down-line-or-history

So it appears to be just a matter of getting the correct codes generated by the above-mentioned keys. Anyone know how to do it?

TIA

blackbelt_jones 08-08-2011 11:05 AM

Quote:

Originally Posted by Kropotkin (Post 1787477)
How can one map the home, end, ctrl-left, etc keys in zsh? In the version installed with Fedora, these keys are not active. In the zsh FAQ, it gives instructions for the regular arrow keys:

Code:

bindkey "$(echotc kl)" backward-char
bindkey "$(echotc kr)" forward-char
bindkey "$(echotc ku)" up-line-or-history
bindkey "$(echotc kd)" down-line-or-history

So it appears to be just a matter of getting the correct codes generated by the above-mentioned keys. Anyone know how to do it?

TIA

Oh this is not encouraging.


All times are GMT -5. The time now is 05:27 PM.