Author: Ramon Gandia
Email: rfg@nome.net
Summary: Getting Backspace/Home/End to work "properly" in X Windows.
Date: Jun 16 1997

Editor's Note:  This was taken as an email on the RedHat Mailling list and
has been edited for content, but all words are those of the author. 

Answer:

What I have done, and has worked *very well* for me,
is to alter the us.map and .Xdefaults files so that
my backspace/delete/home/end keys work properly 
[meaning they work like in MS Windows or in Netscape,
which is the accepted norm today].

------------

In /usr/lib/kbd/keytabless/us.map   change the following: 

Keycode 14 = BackSpace     BackSpace
          alt     keycode   14 = Meta_BackSpace

Keycode 102 = Control_a

Keycode 107 = Control_e

Keycode 111 = Control_d

-------------

In .Xdefaults [for every user], add or modify
this entry:

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

in case your mail program wraps lines, the above has 6 lines,
all ending in "\n\", except for the last line.

--------------

Using this, you can use the Joe editor, PICO, etc. in either
the virtual consoles or in an xterm, and all works the same.
Try it, but make backups first, of course.
