Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ZSH users (lovers?) thread
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 11, 12, 13  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
khayyam
Advocate
Advocate


Joined: 07 Jun 2012
Posts: 2245

PostPosted: Mon Apr 29, 2013 3:57 pm    Post subject: Reply with quote

_______0 wrote:
how to restore home/end button to not convert upper/lower case and got beginning/end line?

_______0 ... it depends on what those keys are sending:

Code:
% cat
^[[1~ # returned by hitting home
^[[4~ # returned by hitting end
^C # control C to exit cat
% bindkey '\e[1~' beginning-of-line
% bindkey '\e[4~' end-of-line

alternately, you can use terminfo:

Code:
typeset -A key
key[Home]=${terminfo[khome]}
key[End]=${terminfo[kend]}
[[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line
[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line

There is also the zkbd utility which can be used to setup the entire keyboard, see:

Code:
% man zshcontrib | less -p "^ *Keyboard"

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3 ... 11, 12, 13
Page 13 of 13

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum