From owner-freebsd-questions@FreeBSD.ORG Fri Jan 14 08:03:40 2005 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 84DCF16A4CE for ; Fri, 14 Jan 2005 08:03:40 +0000 (GMT) Received: from luzifer.incubus.de (incubus.de [80.237.207.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 429C543D49 for ; Fri, 14 Jan 2005 08:03:40 +0000 (GMT) (envelope-from mkb@incubus.de) Received: from [192.168.2.10] (pD95426ED.dip.t-dialin.net [217.84.38.237]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by luzifer.incubus.de (Postfix) with ESMTP id 940B52F420; Fri, 14 Jan 2005 09:03:40 +0100 (CET) Message-ID: <41E77CD6.9070703@incubus.de> Date: Fri, 14 Jan 2005 09:03:34 +0100 From: Matthias Buelow User-Agent: Mozilla Thunderbird 0.9 (X11/20041124) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dkouroun@cc.uoi.gr References: <20050114041625.5FAAB16A4D1@hub.freebsd.org> <1105682151.41e75ee75d681@webmail.uoi.gr> In-Reply-To: <1105682151.41e75ee75d681@webmail.uoi.gr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: del key in bash or tcsh 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: Fri, 14 Jan 2005 08:03:40 -0000 dkouroun@cc.uoi.gr wrote: > Does anybody know how to change this > annoying default behaviour of bash or sh > in FreeBSD when somebody presses the del key? > When I press the del key I want this to work > as it works on any editor or in Linux bash! > Anyway to achieve this? as we cannot guess what the behaviour that you desire actually is, I'm contributing a few tips: - configure xterm (or the terminal emulator you're using) to emit the appropriate key sequence when the "delete" key is hit. In xterm, this can be done via X resources, see xterm(1). For example, make it send ^?. - set the terminal line discipline's erase key to that key (see stty(1)), or use bash's readline keybindings functionality to bind that key to the function you like. I'm not that familiar with readline or bash but it's doable and described in either the bash manpage, or readline's documentation (info files). > For sh which command controls the color? none. mkb.