Gentoo Archives: gentoo-dev

From: 320095285153-0001@t-online.de (Achim Gottinger)
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Keyboard -- DEL Key
Date: Tue, 06 Feb 2001 01:49:34
Message-Id: 3A7FB499.F6A6815@gottinger.de
In Reply to: Re: [gentoo-dev] Keyboard -- DEL Key by Pete Gavin
1 Pete Gavin wrote:
2
3 > On Tue, Feb 06, 2001 at 07:50:31AM +0100, Achim Gottinger wrote:
4 > > Knut Feiert wrote:
5 > >
6 > > > On Mon, 5 Feb 2001 11:49:54 -0700, Pete Gavin wrote:
7 > > >
8 > > > >
9 > > > >Add this line to your ~/.inputrc file to make the delete key work as
10 > > > >expected in bash:
11 > > > >
12 > > > >"\e[3~": delete-char
13 > > >
14 > > > Why is that? Oversight or feature?
15 > >
16 > > A point on my Todo list. Pete do you know which of the console-tools
17 > > files is the best place to start patching?
18 > >
19 > > achim~
20 > >
21 >
22 > This isn't anything that needs to be patched. Its actually a
23 > feature. Whenever you hit the delete key, it sends the sequence
24 > "\e[3~" (\e==^[), which the program can translate as it wishes. (The
25 > same sort of thing happens with the insert key, home and end, and page
26 > up/down.) The .inputrc file allows you to bind whatever keys to
27 > whatever functions you want. The bash developers just decided not to
28 > automatically bind delete to any function. If you want to make this
29 > automatic, you could add a .inputrc file containing that line to
30 > /etc/skel, so that every new user automatically has it in his/her home
31 > directory after its been created. Or, you could add this line to
32 > /etc/profile:
33 >
34 > bind '"\e[3~": delete-char'
35 >
36 > If you want more information on this stuff, do info bash and do a
37 > search on inputrc by hitting Ctrl-s.
38
39 Hmm ok it's a readline feature. Looks like /etc/inputrc should work too.
40 If not adding INPUTRC="/etc/inpurc" to /etc/profile should do the job.
41 At least I found such a file on a Suse6.3 system. I will add it to our
42 baselayout package.
43 Can you take a look at it. It seems you are more familary with it?
44
45 BTW I made a new gcc package that builds with or without libg++. I will
46 commit it with all the other sys-stuff
47 I did in about a day.
48
49 achim~
50
51 >
52 >
53 > Pete
54 >
55 > _______________________________________________
56 > gentoo-dev mailing list
57 > gentoo-dev@g.o
58 > http://www.gentoo.org/mailman/listinfo/gentoo-dev