[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pc keyboard oddity in xterm



On Wed, Sep 09, 1998 at 08:46:56AM +0100, Helge Hafting wrote:
> I use the "home" and "end" keys now and then when editing.
> This is supported by several editors, and by command
> line editing in bash.  But there is an oddity when using
> xterm: "home" and "end" is swapped when editing command
> lines.  I.e. "home" goes to the end of the line and
> "end" sends the cursor to the beginning of the line.
[...]
> Does anybody know how to fix "home" and "end" for xterms only?

You don't happen to be using xbase 3.3.2.2-1 somehow, do you?  That version
did exactly what you describe.  However, it has since been fixed (in
3.3.2.2-2, released on 15 July).

It's also possible you used xbase 3.3.2.2-1 at some point, modified
/etc/X11/Xresources, and then said no to letting dpkg replace that file in
later upgrades.

You should have the following in your /etc/X11/Xresources file:
*VT100.Translations: #override <Key>BackSpace: string("\177")\n\
                               <Key>Delete: string("\033[3~")\n\
                               <Key>Home: string("\033OH")\n\
                               <Key>End: string("\033OF")

If you don't, you may want to edit it to look like the above.

-- 
G. Branden Robinson                 | "Why do we have to hide from the police,
Purdue University                   | Daddy?"
branden@purdue.edu                  | "Because we use vi, son.  They use
http://www.ecn.purdue.edu/~branden/ | emacs."

Attachment: pgpif_0njyYmO.pgp
Description: PGP signature


Reply to: