<<< Date Index >>>     <<< Thread Index >>>

Re: home and end keys not working



On Thursday, March  9 at 10:14 AM, quoth William Yardley:
What’s an nsterm? The Apple Terminal works well with xterm-color for me (though I prefer a real uxterm).

I use xterm-xfree86 normally. nsterm is the "correct" termcap / terminfo entry in the ncurses tc / ti source for the Apple terminal program (used to be Apple_Terminal).

Huh. Never heard of it. Seemed to work fine with “xterm-color”.

home and end don't work for me w/ xterm. Of course they don't work for me w/ nsterm either...

Well, Apple intercepts home/end keys in their terminal, to make them affect the scrollbar the same as they do in other applications.

As for xterm, that’s something you can fix. For example, you can add:

   "\e[H": beginning-of-line

to ~/.inputrc to make that work. \e, of course is the stand-in for ^[ in the output of control-v-home (which, for me, produces ^[[H ). Similarly, you can change the end key with:

   "\e[F": end-of-line

~Kyle
--
No man has a natural right to commit aggression on the equal rights of another, and this is all from which the laws ought to restrain him.
                                      -- Thomas Jefferson, July 7, 1786

Attachment: pgp1pffWmGdUU.pgp
Description: PGP signature