David DeSimone <[EMAIL PROTECTED]> wrote on Fri, 25 Feb 2000:
> As you can see, Mutt calls a function called wgetch(), to get a "key"
> from the keyboard. If that function returns 0522, then Mutt knows that
> you pressed the "next page" key, which Mutt calls "<PageDown>".
If you (Jens) really want to debug this, find the getch() call in
curs_lib.c (line 70 in the Mutt 1.1.5 sources) and add this line after
it:
dprint(4, (debugfile, "got char: %o\n", ch));
Recompile, and then run Mutt with the -d 4 option to get debuglevel 4.
Look at the ~/.muttdebug0 file for the output. The values printed will
correspond to whatever is defined in the curses header file; anything
beyond what you get out of this you will have to go digging in the
curses code, not Mutt.
I only describe all this because I've done it. :-)
Hope this helps,
Mikko
--
// Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/
// The Corrs list maintainer // net.freak // DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
If you don't use punctuation there is no point in what you write