Bug 78423 - Delete key broken
Delete key broken
Product: Red Hat Linux
Classification: Retired
Component: screen (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Lon Hohberger
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2002-11-22 13:15 EST by David Balažic
Modified: 2007-04-18 12:48 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-01-13 14:02:00 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Balažic 2002-11-22 13:15:11 EST
Description of Problem:

Some joker inserted the following line into /etc/screenrc :

bindkey -d -k kD stuff "\177"

This makes the code \177 to appear inside screen virtual terminals
whenever the user presses the "Delete" key, but the screen termcap ( and
screen documentation ) says that the code for "Delete" inside screen is
This makes most/all apps running inside screen to fail properly processing 
the "Delete" key.
Removing that line from screenrc fixes it. ( Why was it added anyway ? )

Version-Release number of selected component (if applicable):

Comment 1 Lon Hohberger 2002-11-22 16:02:24 EST
This works for me on the same release/package noted.

Could you give me a specific example of where this breaks?  LANG, shell,
application?  Do you have a ~/.screenrc?

Comment 2 David Balažic 2002-11-23 10:19:40 EST
This is on a standard RHL8.0 install, no modifications.

SHELL=/bin/bash ( 2.05b-5 )
no ~/.screenrc

examples :

Question : Does the Delete key work properly ?

env 0 - linux console on VT1 , TERM=linux
env s0 - screen running on VT1 , no 'bindkey -d -k kD stuff \177' line in 
screenrc , TERM=screen
env s1 - screen running on VT1 , 'bindkey -d -k kD stuff \177' line in 
screenrc , TERM=screen

application | env 0 | env s0 | env s1
vi          |  yes  |  yes   |  yes   
bash        |  yes  |  yes   |  no   
tcsh        |  no   |  no    |  no   
less        |  yes  |  yes   |  no   
jed         |  no   |  no    |  no    
joe         |  yes  |  yes   |  no   

As you see, this lines breaks everything except vi.
Without it , everything works ( except two cases, but they don't
work outside of screen either )
Comment 3 Lon Hohberger 2002-12-02 10:41:52 EST
I verified this, and will build a package without the bindkey line David has
identified.  Sorry for the wait.

screen-3.9.11-14 - should be in rawhide soon.
Comment 4 Lon Hohberger 2002-12-06 09:26:21 EST
Additionally, 3.9.13-2 will be in rawhide soon - which should not exhibit this
problem either.
Comment 5 Lon Hohberger 2002-12-16 16:32:11 EST
The following package should solve the problem:


Comment 6 David Balažic 2004-06-18 07:45:26 EDT
See the "master bug" for this problem : bug 11294

Note You need to log in before you can comment on or make changes to this bug.