From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16299 invoked from network); 21 Jun 2001 17:16:06 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Jun 2001 17:16:06 -0000 Received: (qmail 21356 invoked by alias); 21 Jun 2001 17:15:24 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15032 Received: (qmail 21336 invoked from network); 21 Jun 2001 17:15:23 -0000 Date: Thu, 21 Jun 2001 19:15:39 +0200 Message-Id: <200106211715.f5LHFdD29417@linux3.maruska.tin.it> X-Authentication-Warning: linux3.maruska.tin.it: mmc set sender to mmc@maruska.dyndns.org using -f From: "Michal Maruška" To: Pierpaolo.Righini@roma1.infn.it CC: zsh-workers@sunsite.dk In-reply-to: (message from Pierpaolo Righini on Thu, 21 Jun 2001 18:26:46 +0200 (MET DST)) Subject: Re: bindkey Comments: Hyperbole mail buttons accepted, v04.18. References: Hi Pierpaolo, yesterday i solved the same problem on my wife's computer. I do not use these keys, as they are quite distant (i prefer control/meta combinations). So you have got some keys, which do not do what you expect. Let's bind them to what we want. But what are the codes of the keys? Ask the zsh what coded these keys produce: you> type: M-x (M- stands for meta or alt key -x means contemporary press the letter x) zsh> says: execute:_ you> type: describe-key-briefly zsh> says: Describ key briefly: _ you> press the key which bothers you. e.g Home zsh> says: "^[[1" is undefined-key but you want it to go to the beginning of the line, so you must bind it: bindkey "^[[1" beginning-of-line Note that ^[ is 1 character (escape), so you must quote it (i do it in emacs). after this the key will do what you want, but it still insert the ~. So I think that describe-key-briefly did not report all the key sequence. Let's append it bindkey "^[[1~" beginning-of-line Now it works! Do the same with other keys. Well you need to consult some guide to know the names of functions ... sorry extract from ~/.zprofile: bindkey "[1~" beginning-of-line bindkey "[4~" end-of-line bindkey "[3~" delete-char ciao.