Bug 63403 - Delete key not working in vi/less under xterm
Summary: Delete key not working in vi/less under xterm
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: vim
Version: skipjack-beta2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: wdovlrrw
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-04-13 12:25 UTC by Jukka Lehti
Modified: 2007-04-18 16:41 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-04-16 16:43:53 UTC
Embargoed:


Attachments (Terms of Use)

Description Jukka Lehti 2002-04-13 12:25:18 UTC
Description of Problem:

I have added following lines to ~/.Xresources to enable the Delete and other
keys to work as I prefer in xterm (Delete removes a char before the cursor
position):

  xterm*VT100.Translations: #override\n\
        <KeyPress>Prior:        scroll-back(1,page)\n\
        <KeyPress>Next:         scroll-forw(1,page)\n\
        <KeyPress>Home:         string(0x01)\n\
        <KeyPress>End:          string(0x05)\n\
        <KeyPress>Delete:       string(0x04)\n\
        <KeyPress>BackSpace:    string(0x7F)

The keys defined above as work expected in every application but Delete
misbehaves in vi and less. In vi, pressing Delete does nothing, and in less
pressing delete when writing (e.g., search parameters) prints ^D. Removing
Delete definition from ~/.Xresources is not an options since it break other
applications.


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

less-358-24
vim-common-6.1-2

How Reproducible:

Always.

Steps to Reproduce:
1. Add lines from above to ~/.Xresources
2. start X
3. start xterm
4. run vi or less, type something and try to use Delete

Additional Information:
	
Same problem is with RH7.2+errata, there is also Backspace broken in vi/less
(produces ^?) but Backspace is working with skipjack. All other apps (emacs,
pico, etc) are ok.

Comment 1 Bernhard Rosenkraenzer 2002-04-15 16:02:47 UTC
What applications does removing nonstandard redefinitions of standard keys 
break? Those applications need fixing, vim/less are working correctly.

Comment 2 Jukka Lehti 2002-04-16 16:43:48 UTC
Hmm, after testing everything I can imagine: no apps broke! I added the
redefinitions during RH6.x era, so I guess they are no obsolete.

Please close this bug, and sorry for wasting everybody's time!


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