public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Keyboard -- DEL Key
@ 2001-02-05 11:41 Knut Feiert
  2001-02-05 11:50 ` Pete Gavin
  0 siblings, 1 reply; 6+ messages in thread
From: Knut Feiert @ 2001-02-05 11:41 UTC (permalink / raw
  To: Gentoo Linux Development Mailing List

There seems to be a problem with the DEL key
in Gentoo Linux 1.0_rc4_pre2.
Pressing the del key either on the key block 
above the cursor keys or in the numeric 
key pad with num lock off gives a beep and
a ~ (Tilde) instead of erasing the character 
under the cursor. Problem seems independent 
from the keymap used. (tried us, and de varieties)
Does not happen with suse and kernel 2.2.
(tried a keymap from suse aswell)


Knut




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Keyboard -- DEL Key
  2001-02-05 11:41 [gentoo-dev] Keyboard -- DEL Key Knut Feiert
@ 2001-02-05 11:50 ` Pete Gavin
  0 siblings, 0 replies; 6+ messages in thread
From: Pete Gavin @ 2001-02-05 11:50 UTC (permalink / raw
  To: gentoo-dev

On Mon, Feb 05, 2001 at 07:39:46PM +0100, Knut Feiert wrote:
> There seems to be a problem with the DEL key
> in Gentoo Linux 1.0_rc4_pre2.
> Pressing the del key either on the key block 
> above the cursor keys or in the numeric 
> key pad with num lock off gives a beep and
> a ~ (Tilde) instead of erasing the character 
> under the cursor. Problem seems independent 
> from the keymap used. (tried us, and de varieties)
> Does not happen with suse and kernel 2.2.
> (tried a keymap from suse aswell)
> 
>

Add this line to your ~/.inputrc file to make the delete key work as
expected in bash:

"\e[3~": delete-char

Pete




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Keyboard -- DEL Key
@ 2001-02-06  0:07 Knut Feiert
  2001-02-06  0:17 ` Achim Gottinger
  0 siblings, 1 reply; 6+ messages in thread
From: Knut Feiert @ 2001-02-06  0:07 UTC (permalink / raw
  To: gentoo-dev@gentoo.org

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?

Knut




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Keyboard -- DEL Key
  2001-02-06  0:07 Knut Feiert
@ 2001-02-06  0:17 ` Achim Gottinger
  2001-02-06  1:20   ` Pete Gavin
  0 siblings, 1 reply; 6+ messages in thread
From: Achim Gottinger @ 2001-02-06  0:17 UTC (permalink / raw
  To: gentoo-dev; +Cc: pete

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~

>
>
> Knut
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://www.gentoo.org/mailman/listinfo/gentoo-dev




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Keyboard -- DEL Key
  2001-02-06  0:17 ` Achim Gottinger
@ 2001-02-06  1:20   ` Pete Gavin
  2001-02-06  1:50     ` Achim Gottinger
  0 siblings, 1 reply; 6+ messages in thread
From: Pete Gavin @ 2001-02-06  1:20 UTC (permalink / raw
  To: gentoo-dev

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




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Keyboard -- DEL Key
  2001-02-06  1:20   ` Pete Gavin
@ 2001-02-06  1:50     ` Achim Gottinger
  0 siblings, 0 replies; 6+ messages in thread
From: Achim Gottinger @ 2001-02-06  1:50 UTC (permalink / raw
  To: gentoo-dev

Pete Gavin wrote:

> 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.

Hmm ok it's a readline feature. Looks like /etc/inputrc should work too.
If not adding INPUTRC="/etc/inpurc" to /etc/profile should do the job.
At least I found such a file on a Suse6.3 system. I will add it to our
baselayout package.
Can you take a look at it. It seems you are more familary with it?

BTW I made a new gcc package that builds with or without libg++. I will
commit it with all the other sys-stuff
I did in about a day.

achim~

>
>
> Pete
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://www.gentoo.org/mailman/listinfo/gentoo-dev




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-02-06  8:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-05 11:41 [gentoo-dev] Keyboard -- DEL Key Knut Feiert
2001-02-05 11:50 ` Pete Gavin
  -- strict thread matches above, loose matches on Subject: below --
2001-02-06  0:07 Knut Feiert
2001-02-06  0:17 ` Achim Gottinger
2001-02-06  1:20   ` Pete Gavin
2001-02-06  1:50     ` Achim Gottinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox