Bug 78423

Summary: Delete key broken
Product: [Retired] Red Hat Linux Reporter: David Balažic <david.balazic>
Component: screenAssignee: Lon Hohberger <lhh>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: chris.ricker, david.balazic, petersen
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-13 19:02:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description David Balažic 2002-11-22 18:15:11 UTC
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 21:02:24 UTC
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 15:19:40 UTC
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 15:41:52 UTC
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 14:26:21 UTC
Additionally, 3.9.13-2 will be in rawhide soon - which should not exhibit this
problem either.

Comment 5 Lon Hohberger 2002-12-16 21:32:11 UTC
The following package should solve the problem:


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