Bill Sun wrote: > I'm a zsh user. I have those key bindings in .zshrc: > 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 > > In 'plain' xterm, the <Home> and <End> keys work perfectly. In tmux, > however, these 2 keys won't work at all. > > In xterm, $terminfo[Home] returns 'F'. In tmux, that value returns > nothing. Can I set tmux to treat $terminfo properly?
It's not tmux, but zsh that's at fault here - if you want to call it that. You need to enable the right terminal mode while zsh's line editor is active (man 5 terminfo: smkx, rmkx). Debian's zsh-5.0.0 package does the right thing in its zshrc: http://anonscm.debian.org/gitweb/?p=collab-maint/zsh.git;a=blob;f=debian/zshrc;hb=HEAD Look at `zle-line-init()' and `zle-line-finish()'. Regards, Frank ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users