Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Home and End key on Mac OSX 10.5



On 2009-01-25 10:24:22 +0100, basile caillens wrote:
> Ok, I've found a solution.
> I've just added in my zshrc :
>
> # xterm
> if [ "$TERM" = "xterm-color" ]
> then
>   # Correspondance touches-fonction spécifique
>   bindkey '^[[H'  beginning-of-line       # Home
>   bindkey '^[[F'  end-of-line             # End
> fi
>
> and it works for me.

Using terminfo data that correspond to your terminal would be a
better idea, otherwise you'll have the same kind of problems with
other terminal-based software (alternatively, this can be a bad
configuration of your terminal). The infocmp, tack and tic
utilities are your friends.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author