From owner-freebsd-questions Thu Jun 6 13:54:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from richard.eu.org (adsl-213-190-48-167.takas.lt [213.190.48.167]) by hub.freebsd.org (Postfix) with ESMTP id 78E5037B400 for ; Thu, 6 Jun 2002 13:54:20 -0700 (PDT) Received: from richard.eu.org (localhost [127.0.0.1]) by richard.eu.org (8.12.3/8.12.3) with ESMTP id g56KsGw6014914 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 6 Jun 2002 22:54:17 +0200 (EET) (envelope-from rch@richard.eu.org) Received: (from rch@localhost) by richard.eu.org (8.12.3/8.12.3/Submit) id g56KsF72014910 for freebsd-questions@FreeBSD.ORG; Thu, 6 Jun 2002 22:54:15 +0200 (EET) Date: Thu, 6 Jun 2002 22:54:15 +0200 From: Richard =?utf-8?B?xIxlcGFz?= To: freebsd-questions@FreeBSD.ORG Subject: Re: Delete Key Message-ID: <20020606205415.GI13604@richard.eu.org> References: <20020606200404.A155-100000@kmart.lan.palfreman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20020606200404.A155-100000@kmart.lan.palfreman.com> User-Agent: Mutt/1.5.0i X-OS: FreeBSD 4.6-RC i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu Jun 6 20:22:01 2002 +0100 William Palfreman wrote: <..> > >> As for the issue, the following works for me: >> >> $ bindkey "^?" delete-char > >Works for me when I run csh - I never use it as a shell. What about in >sh or bash? > As far as I know sh doesn't have that. Bash have extensive info manual where is described 'bind' command. Though in my humble opinion most people prefer adding something like this below to ~/.inputrc as this works in other "readline" programms as well: "\e[3~": delete-char What is actual character for Delete key depends on TERM - you can make it conditional as some terms have chosen to use ^? for backspace. Don't ask me why readline is unable to use ncurses for that. -- ☻ Ričardas Čepas ☺ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message