From owner-freebsd-questions@FreeBSD.ORG Sat Jul 31 22:24:41 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 B674E16A4CE; Sat, 31 Jul 2004 22:24:41 +0000 (GMT) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6841A43D1F; Sat, 31 Jul 2004 22:24:39 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a239.otenet.gr [212.205.215.239]) i6VMOYuU020250; Sun, 1 Aug 2004 01:24:35 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.11/8.12.11) with ESMTP id i6VMO3HG001036; Sun, 1 Aug 2004 01:24:03 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.11/8.12.11/Submit) id i6VILThT005057; Sat, 31 Jul 2004 21:21:29 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 31 Jul 2004 21:21:29 +0300 From: Giorgos Keramidas To: Mark Ovens Message-ID: <20040731182129.GA63332@gothmog.gr> References: <200407301304.i6UD4F97022469@northgate.starhub.net.sg> <410A4D93.5060800@freebsd.org> <20040731060254.40362135@it.buh.tecnik93.com> <410BDA5F.30907@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <410BDA5F.30907@freebsd.org> 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: Sat, 31 Jul 2004 22:24:41 -0000 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" >>> >>> Actually, this is probably a better solution for the OP as it is >>> global whereas my previous suggestion is xterm specific. >> >> The only problem is that if you keep the delete key pressed to long >> it exits the terminal. At least when xmodmap.... typed under kde's >> konsole; it acts this way both in for konsole and xterm. > > Only if the cursor is in the first character position after the prompt > of course. Not sure what the solution is since Ctrl-D is delete char to > the right of the cursor and EOT, which exits the shell. There's always some sort of option to ignore EOF's in interactive mode, like IGNOREEOF=10 in GNU bash, `set ignoreeof=10' in tcsh, or `set -I' in FreeBSD's sh(1). Setting this might avoid unexpected shell termination by hitting DEL :)