From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9386 invoked from network); 22 Jun 2001 12:26:39 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 22 Jun 2001 12:26:39 -0000 Received: (qmail 17486 invoked by alias); 22 Jun 2001 12:25:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15044 Received: (qmail 17451 invoked from network); 22 Jun 2001 12:25:51 -0000 Date: Fri, 22 Jun 2001 14:14:14 +0200 Message-Id: <200106221214.f5MCEEl16908@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 Fri, 22 Jun 2001 13:59:18 +0200 (MET DST)) Subject: Re: bindkey Comments: Hyperbole mail buttons accepted, v04.18. References: Pierpaolo Righini writes: >computer too!! Thanks a lot! Indeed what I really needed is the way to >obtain the code of the various keys. Bart Schaefer writes> > 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. Given this situation, I think the way to know the sequence (sent by a key) is to look at the configuration of the terminal (emulator), In case your problem is with Xterm, see the file (in XFree 4.0.2): /etc/X11/app-defaults/XTerm mine contains: *VT100*translations: #override \ ....(lines skipped) Home: string("[1~") \n\ End: string("[4~") \n\ Ctrl Home: string("[88~") \n\ Ctrl End: string("[87~") \n\ Shift Right: string("r") \n\ Ctrl Right: string("[`3") \n\ Ctrl Left: string("[`2") \n\ IIRC in XFree 3.xx it was: /usr/X11/lib/X11/app-defaults/XTerm