From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26637 invoked from network); 21 Mar 2004 21:24:28 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 21 Mar 2004 21:24:28 -0000 Received: (qmail 12718 invoked by alias); 21 Mar 2004 21:24:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7221 Received: (qmail 12707 invoked from network); 21 Mar 2004 21:24:07 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 21 Mar 2004 21:24:07 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 21 Mar 2004 21:24:7 -0000 Received: (qmail 1650 invoked from network); 21 Mar 2004 21:24:07 -0000 Received: from 90.red-213-97-199.pooles.rima-tde.net (HELO fargo) (213.97.199.90) by a.mx.sunsite.dk with SMTP; 21 Mar 2004 21:24:05 -0000 Received: (qmail 32684 invoked by uid 500); 21 Mar 2004 21:26:38 -0000 Date: Sun, 21 Mar 2004 22:26:38 +0100 From: David =?iso-8859-15?Q?G=F3mez?= To: Zsh-users Subject: Re: bindkey and widgets Message-ID: <20040321212638.GA32667@fargo> References: <20040321143156.GA31236@fargo> <1040321170157.ZM25009@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1040321170157.ZM25009@candle.brasslantern.com> User-Agent: Mutt/1.4.1i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.1 required=6.0 tests=RCVD_IN_RFCI autolearn=no version=2.63 X-Spam-Hits: 0.1 Hi Bart ;); > So you need to find out what that sequence is. The easiest way may be > to type Ctrl+v (which usually means "quote next character") and then > Ctrl+RePag and see what appears. If it looks like ^[[5~ (^[ is another > way to write \e), then your keyboard and/or terminal emulator does not > distinguish the ctrl modifier for function keys. Yes, it looks the same, whether the Control key is pressed or not, so it seems my terminal emulator is sending the same sequence in both cases. > It may be possible to program your terminal emulator to recognize ctrl > with function keys, but that's beyond what I'm prepared to explain here. You explained enough and have been very helpful, thanks ;). I've just seen another response from Raúl that explains a solution to modify my keymap to generate a different sequence to ctrl+repag, so i'll try that. > Creating a widget is probably the best way because it doesn't depend on > any other bindings. However, you can use "bindkey -s". It's a better solution, that's true. But i think that a keybinding like '\e{' is also a good solution, and i my case i don't have custom keybindings with the escape sequence, so it's a rather safe solution. Thanks again ;) -- David Gómez "The question of whether computers can think is just like the question of whether submarines can swim." -- Edsger W. Dijkstra