On Fri, 27 Oct 2000, Juergen Salk wrote:
> I have to apologize if I'm beating this to death, but I have to admit,
> that I don't feel terribly familiar with all these terminfo stuff.
> So, is there a way to use mutt in gnome-terminal with Home and End
> keys working *and* with color support?
The simplest way is to have a terminfo that accurately describes
gnome-terminal (that way, all of the applications that run in that
terminal can share the information). Putting internal tables into an
application sounds fine, until you realize that it solves only a
particular selection of terminals - and has to be maintained for each
application.
Basically, you would have been able to use the 'gnome' entry I wrote,
except for a subtle detail: I coded the keys that you are looking for so
that ncurses would retrieve them as the vt220-style KEY_FIND/KEY_SELECT
rather than what mutt is sayin KEY_HOME/KEY_END. Though a low-level
interface (such as termcap or terminfo) can store both, the upper-level
libraries will return only one (this is true of curses/ncurses/slang).
Since mutt is looking for one code, and I've put those strings under
another, it doesn't recognize them. (When I'm reviewing this email,
I'll see if there's a good compromise)
> There is another issue that came to my mind while writing these lines:
> Wouldn't it make any sense to add some internal translation tables to mutt
> (like those in vim or tin) to make mutt's key bindings more independent on
> the terminal emulator it's running in.
>
> Best regards - Juergen.
>
>
--
T.E.Dickey <[EMAIL PROTECTED]>
http://dickey.his.com
ftp://dickey.his.com