public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Pete Gavin <pete@gentoo.org>
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] Keyboard -- DEL Key
Date: Tue Feb  6 01:20:02 2001	[thread overview]
Message-ID: <20010206011948.A24074@cvs.gentoo.org> (raw)
In-Reply-To: <3A7F9EB7.219498BA@gottinger.de>; from 320095285153-0001@t-online.de on Tue, Feb 06, 2001 at 07:50:31AM +0100

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




  reply	other threads:[~2001-02-06  8:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-06  0:07 [gentoo-dev] Keyboard -- DEL Key Knut Feiert
2001-02-06  0:17 ` Achim Gottinger
2001-02-06  1:20   ` Pete Gavin [this message]
2001-02-06  1:50     ` Achim Gottinger
  -- strict thread matches above, loose matches on Subject: below --
2001-02-05 11:41 Knut Feiert
2001-02-05 11:50 ` Pete Gavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010206011948.A24074@cvs.gentoo.org \
    --to=pete@gentoo.org \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox