Hi there,
The little program David send (linked to ncurses) returns 0522 and 0523,
both curses.h and ncurses.h look like this:
#define KEY_NPAGE 0522 /* Next page */
#define KEY_PPAGE 0523 /* Previous page */
So terminfo has to be OK if I understood your explanation.
Using the debug-thing Mikko suggested I get:
for pageup/pagedown:
got char: 415
mutt_index_menu[513]: Got op 0
Taste ist nicht belegt. Drücken Sie '?' für Hilfe.
got char: 412
mutt_index_menu[513]: Got op 0
Taste ist nicht belegt. Drücken Sie '?' für Hilfe.
home/end:
got char: 177777
mutt_index_menu[513]: Got op -1
got char: 177777
mutt_index_menu[513]: Got op -1
So I have to take a look at the curses code, as Mikko said....
But what about the fact that my mutt is linked against slang, not curses?
(I mentioned this in my first mail!)
slang defines:
#define SL_KEY_PPAGE 0x105
#define SL_KEY_NPAGE 0x106
#define KEY_PPAGE SL_KEY_PPAGE
#define KEY_NPAGE SL_KEY_NPAGE
So I linked Davids program to slang instead of curses and got:
412/415 for pageup/pagedown and 0177777 for home/end. THAT looks like what
mutt sees.
My problem is that 0x105 is 261 and not 415 or 522. So slang does some
things I can't understand and maybe slang is the problem...I'm not sure, but
maybe. Before the upgrade there were no problems and I was able to take a
look which version of slang I used at this time: it was 1.3.9. Now I tested
1.3.10 and 1.4.0.
I can't even do a quick hack to mutt, as it gets 0177777 for more than one
key. Well, I'll write to the slang-maintainer about this.
Thanks a lot for your help and for your very big patience...hope the problem
will be solved soon...
regards, Jens