From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25034 invoked from network); 21 Jun 2001 18:43:35 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Jun 2001 18:43:35 -0000 Received: (qmail 8962 invoked by alias); 21 Jun 2001 18:42:54 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15034 Received: (qmail 8940 invoked from network); 21 Jun 2001 18:42:53 -0000 From: "Bart Schaefer" Message-Id: <1010621184051.ZM10798@candle.brasslantern.com> Date: Thu, 21 Jun 2001 18:40:50 +0000 In-Reply-To: =?iso-8859-1?Q?=3C200106211715=2Ef5LHFdD29417=40linux3=2Emaru?= =?iso-8859-1?Q?ska=2Etin=2Eit=3E?= =?iso-8859-1?Q?Comments=3A_In_reply_to_=22Michal_Maru=B9ka=22_=3Cmmc=40ma?= =?iso-8859-1?Q?ruska=2Edyndns=2Eorg=3E?= =?iso-8859-1?Q?________=22Re=3A_bindkey=22_=28Jun_21=2C__7=3A15pm=29?= References: <200106211715.f5LHFdD29417@linux3.maruska.tin.it> X-Mailer: Z-Mail (5.0.0 30July97) To: =?iso-8859-1?Q?=22Michal_Maru=B9ka=22?= , Pierpaolo.Righini@roma1.infn.it Subject: Re: bindkey Cc: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Jun 21, 7:15pm, Michal Maru=B9ka wrote: } } Ask the zsh what coded these keys produce: = } you> type: M-x (M- stands for meta or alt key -x means contemporary pr= ess 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 } = } describe-key-briefly did not report all the key sequence. Hmm, this is a bit of a thorny problem: describe-key-briefly only works correctly for keys which are bound to something. For keys that are not bound, the search through the key tables stops as soon as it finds that the prefix is not bound, without consuming the remaining characters of the multi-key sequence. Of course zsh has no way of knowing that it should treat \e[1~ as all one= sequence before it is bound to something; it can't tell how many keys you= pressed to cause that to appear. -- = Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net = =