Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Home and End key on Mac OSX 10.5
- X-seq: zsh-users 13751
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: basile caillens <basile_caillens@xxxxxxxx>
- Subject: Re: Home and End key on Mac OSX 10.5
- Date: Mon, 26 Jan 2009 13:58:20 +0100
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <908F15AC-6701-4D4E-BF13-ABA6E95AEB7E@xxxxxxxx>
- Mail-followup-to: basile caillens <basile_caillens@xxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <C7CB0040-F85B-408C-A2A6-E5F4674C957C@xxxxxxxx> <AD7225A7-98A3-4F11-93AD-B5FEC1120F64@xxxxxxxx> <090124150127.ZM24103@xxxxxxxxxxxxxxxxxxxxxx> <908F15AC-6701-4D4E-BF13-ABA6E95AEB7E@xxxxxxxx>
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