* Thomas E. Dickey <[EMAIL PROTECTED]> [001027 22:09]:
> 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.
> 

Someone sent me his gnome terminfo from the RH7 ncurses rpm package,
which seems to work out-of-the-box for me.

> 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.

I've also tried your gnome terminfo from the ncurses-5.2 tarball.
As far as I understand, this route would require patching mutt's 
keymap.c, because these key mappings are hardcoded, right? 

--- keymap.c.orig       Sat Oct 28 17:40:27 2000
+++ keymap.c    Sat Oct 28 17:45:03 2000
@@ -65,8 +65,8 @@
   { "<Delete>",        KEY_DC },
   { "<BackSpace>",KEY_BACKSPACE },
   { "<Insert>",        KEY_IC },
-  { "<Home>",  KEY_HOME },
-  { "<End>",   KEY_END },
+  { "<Home>",  KEY_FIND },
+  { "<End>",   KEY_SELECT },
 #ifdef KEY_ENTER
   { "<Enter>", KEY_ENTER },
 #endif

Hmm, what would you think about adding vt220-style support as a 
compile option for mutt's 'configure' or better as a configuration 
variable for .muttrc or still better as a command line option?

Best regards - Juergen.


Reply via email to