From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=DATE_IN_PAST_06_12, INVALID_DATE,MAILING_LIST_MULTI,NO_RELAYS autolearn=no autolearn_force=no version=4.0.0 Received: from pete by cvs.gentoo.org with local (Exim 3.22 #1) id 14Q3Lo-0006cC-00 for gentoo-dev@gentoo.org; Tue, 06 Feb 2001 01:19:48 -0700 From: Pete Gavin To: gentoo-dev@gentoo.org Subject: Re: [gentoo-dev] Keyboard -- DEL Key Message-ID: <20010206011948.A24074@cvs.gentoo.org> References: <200102060706.IAA04535@smtp01do.de.uu.net> <3A7F9EB7.219498BA@gottinger.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A7F9EB7.219498BA@gottinger.de>; from 320095285153-0001@t-online.de on Tue, Feb 06, 2001 at 07:50:31AM +0100 Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux development list List-Unsubscribe: , List-Archive: Date: Tue Feb 6 01:20:02 2001 X-Original-Date: Tue, 6 Feb 2001 01:19:48 -0700 X-Archives-Salt: 987df345-7b78-4124-8d10-db879b0f9837 X-Archives-Hash: 038f6b0c2740010e75542ca8b6e5b806 On Tue, Feb 06, 2001 at 07:50:31AM +0100, Achim Gottinger wrote: > Knut Feiert wrote: > > > On Mon, 5 Feb 2001 11:49:54 -0700, Pete Gavin wrote: > > > > > > > >Add this line to your ~/.inputrc file to make the delete key work as > > >expected in bash: > > > > > >"\e[3~": delete-char > > > > Why is that? Oversight or feature? > > A point on my Todo list. Pete do you know which of the console-tools > files is the best place to start patching? > > achim~ > This isn't anything that needs to be patched. Its actually a feature. Whenever you hit the delete key, it sends the sequence "\e[3~" (\e==^[), which the program can translate as it wishes. (The same sort of thing happens with the insert key, home and end, and page up/down.) The .inputrc file allows you to bind whatever keys to whatever functions you want. The bash developers just decided not to automatically bind delete to any function. If you want to make this automatic, you could add a .inputrc file containing that line to /etc/skel, so that every new user automatically has it in his/her home directory after its been created. Or, you could add this line to /etc/profile: bind '"\e[3~": delete-char' If you want more information on this stuff, do info bash and do a search on inputrc by hitting Ctrl-s. Pete