Jens Wilhelm Wulf <[EMAIL PROTECTED]> wrote on Sat, 26 Feb 2000:
> Thanks a lot for the describtion of how keys are handled...it surprises me that
> it's done this way, as there is one layer more than I expected. I thought
> that the codes from terminfo are the ones programs see (if they use it, no
> matter how it is done), and so it is important that terminfo is correct. Why
> does ncurses do a second translation? That's just a thought of mine, don't
> feel you have to answer....
(This is getting increasingly off-topic, but here goes...)
Well, I don't *know* (not having developed either curses or even Mutt
about things like this), but I'll venture a guess. The reason might be
that you can just use the curses "getkey" function and it works on every
platform which has curses. That way the program doesn't need to worry
about the input codes etc., curses does it all for you. It's an
abstraction layer, which makes end-applications simpler (and better).
Same reason kind of why programs use libc...
Anyway, good luck with your hunt for the source of your key problems.
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 /
Some people wouldn't recognize subtlety if it hit them on the head.