Bug 58713 - unexpected behaviour of Home and End keys in xterm
Summary: unexpected behaviour of Home and End keys in xterm
Keywords:
Status: CLOSED DUPLICATE of bug 58031
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: XFree86
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mike A. Harris
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-23 17:48 UTC by Leonid Kanter
Modified: 2007-04-18 16:39 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-01-23 17:49:11 UTC
Embargoed:


Attachments (Terms of Use)

Description Leonid Kanter 2002-01-23 17:48:23 UTC
Description of Problem:

Home and End keys produce wrong esc sequences in xterm

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

4.2.0-2.1

How Reproducible:

always

Steps to Reproduce:

1. open xterm and start mc in it
2. hit "Home" and than "End" buttons

Actual Results:
You'll see "H" and "F" characters in command line

Expected Results:

Pointer line must be moved to first and than to last line of file list in
current mc panel.

Additional Information:
	
You can also type "cat /dev/tty", press Home and End and see wrong Esc sequenses 
^[[H and ^[[F (must be ^[[1~ and ^[[4~).

To fix the problem, following patch must be applied to XTerm app-defaults file:
--- XTerm.orig  Wed Jan 23 19:39:19 2002
+++ XTerm       Wed Jan 23 19:39:33 2002
@@ -145,7 +145,7 @@

 !This can be useful if you have an IntelliMouse.  It maps the button
 !events generated by the wheel
-*VT100*translations:   #override \
+*VT100*Translations:   #override \
                        <Key>Delete:    string(0x1b) string("[3~")  \n\
                        <Key>Home:      string(0x1b) string("[1~")  \n\
                        <Key>End:       string(0x1b) string("[4~")  \n\

see file attached to #49315 that fixes both current bug and #49315.

Comment 1 Mike A. Harris 2002-01-23 19:19:41 UTC

*** This bug has been marked as a duplicate of 58031 ***


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