On Wed, 9 Aug 2000, GianPiero Puccioni wrote:
> * Thomas Dickey <[EMAIL PROTECTED]> [000809 13:14]:
> > On Wed, Aug 09, 2000 at 12:38:21PM +0200, GianPiero Puccioni wrote:
> > > Yes, this is true. But if I put a line in muttrc that says
> > >
> > > bind pager \e[F bottom
> > >
> > > where \e[F is what vi's ^V put in (with \e instead of ^[) it should work
> > > whatever the terminfo. Or am I missing something?
> >
> > is that (n)curses or slang?
> > (if the former, mutt isn't using that string per se)
> >
> > --
> > Thomas E. Dickey <[EMAIL PROTECTED]>
>
> I am not sure as I used the RPM found at mutt.linuxatwork.at, but
> looking inside the executable with 'strings' gives "libncurses.so.4",
> so I suppose it's ncurses. I checked the terminfo entry for "end" and it
> seems right:
mutt's using the keypad function in ncurses, which means (in effect) that
anything that's in the terminfo will be interpreted as a KEY_xxx symbol,
and not as an escape sequence by the application. It's possible to
work with the escape sequences themselves (I did that in an application
earlier this year), but not really to mix the two styles.
If you're using the curses keypad() code, then it's possible in some
cases to have keys with different names attached to the same strings.
For instance, there's one application which looks for kll rather than
kend (joe), so terminfo/termcap entries that accommodate it will return
kll's keycode rather than kend because that one is found first.
> infocmp xterm |grep end
> kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~, kend=\E[F,
>
> On the other hand xterm-color has it wrong but TERM is set to xterm so
There's more than one flavor: xterm-color is usually based on xterm-r6,
which is different from both rxvt and xterm-xfree86. I'd rather not
have xterm-color at all since it only confuses people.
> unless mutt switches to xterm-color when using coloring it shouldn't
> matter and in addition to that it has khome wrong too, and <home> works.
>
> Other programs (like tin) that use libncurses.so.4 have no problems with
> <end>. So I can't understand what exactly is the problem, and if I can't
tin can be built with curses, or without, but still use libncurses.
> use the sequence given by the key (why?) what can I do to fix the
> problem?
>
> Thanks for the help.
>
>
> Ciao,
> GianPiero
>
--
T.E.Dickey <[EMAIL PROTECTED]>
http://dickey.his.com
ftp://dickey.his.com