Jens Wilhelm Wulf <[EMAIL PROTECTED]> wrote:
>
> ----------------------------------
> infocmp $TERM:
> khome=\EOH, kend=\EOF
> knp=\E[6~, kpp=\E[5~
> 
> ----------------------------------
> cat > /dev/null:
> ^[[H
> ^[[F
> ^[[5~
> ^[[6~
> ----------------------------------
> emacs -nw:
> ^[OH
> ^[OF
> ^[[5~
> ^[[6~
> ----------------------------------

VT100 terminals have two "modes", application and normal mode.  The
application mode returns the "\EO" sequences, while normal mode returns
the "\E[" sequences.  I have no idea why this is done.  Ask DEC what
they had in mind.  :)

> So jed sees different codes for home/end (but they donīt work ;-)

The mode of the terminal is controlled by escape sequences being sent. 
You probably have ncurses putting the terminal into one mode, and slang
putting it into the other mode.

> I changed terminfo to ^[[5~ and so on as Marius suggested.  But
> "infocmp $TERM" still gives the same codes.  Did the change not work
> or are these things just different notations for the same codes?

In order to make changes to the terminfo database, you must run "tic". 
That is, generate a file with infocmp, edit it, then compile that file
with tic.  Is that what you did?

-- 
David DeSimone   | "The doctrine of human equality reposes on this:
[EMAIL PROTECTED]   |  that there is no man really clever who has not
Hewlett-Packard  |  found that he is stupid." -- Gilbert K. Chesterson
UX WTEC Engineer |    PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44

Reply via email to