From owner-freebsd-questions@FreeBSD.ORG Sun Aug 1 02:47:42 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36C0E16A4CE; Sun, 1 Aug 2004 02:47:42 +0000 (GMT) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86E5F43D58; Sun, 1 Aug 2004 02:47:41 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp55-219.lns1.adl2.internode.on.net [150.101.55.219])i712lU4Y024137; Sun, 1 Aug 2004 12:17:32 +0930 (CST) From: Malcolm Kay Organization: at home To: Giorgos Keramidas , Mark Ovens Date: Sun, 1 Aug 2004 12:17:29 +0930 User-Agent: KMail/1.5.4 References: <200407301304.i6UD4F97022469@northgate.starhub.net.sg> <410BDA5F.30907@freebsd.org> <20040731182129.GA63332@gothmog.gr> In-Reply-To: <20040731182129.GA63332@gothmog.gr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200408011217.29531.malcolm.kay@internode.on.net> cc: freebsd-questions@freebsd.org Subject: Re: backspace and delete keys behavior X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Aug 2004 02:47:42 -0000 On Sunday 01 August 2004 03:51, Giorgos Keramidas wrote: > On 2004-07-31 18:43, Mark Ovens wrote: > >Ion-Mihai Tetcu wrote: > >>On Fri, 30 Jul 2004 14:30:59 +0100 Mark Ovens wrote: > >>> To implement this in a running X session type this in an xterm > >>> > >>> xmodmap -e "keysym Delete = 0x04" > >>> The default code produced by the Delete key and interpretation by X is fine. Xterm produces the standard ANSI sequence "^[[3~" as it should and this is encoded in termcap for xterm as delete character. And this will work as expected for many applications working within an xterm window. The problem comes about that the shell does not honour this termcap entry. Don't fool with xmodmap; it will work against you in applications -- just bind the key sequence in your shell (tcsh?) $ bindkey "^[[3~" delete-char I guess it would not be too difficult to extract the correct string from termcap so that it worked for all (most) terminals but most now use the standard ANSI sequences so it is probably not worth the effort. Malcolm