On Tue, Jan 11, 2000 at 17:40:38 -0800, Larry Lipstone wrote:
> I find with my mutt-1.0i running on UnixWare 2.1.3, with TERM=dtterm,
> every time the timeout (or whatever) period expires and it checks for
> new mail, the program emits a "make cursor visible", then stat()'s the
> mail drop, then sends "make cursor invisible".
> 
> This causes my poor (yet expensive) ISDN connection to demand-dial [...]

I see the problem. The attached patch should avoid the changes of
the visibility of the cursor after timeouts. (I hope it does, but
I cannot see the difference on my screen, so please test).

The patch is usable on both the stable (1.0) and unstable (1.1.2)
versions.

-- 
Byrial
--- curs_main.c~        Mon Jan 10 10:38:43 2000
+++ curs_main.c Thu Jan 13 11:11:33 2000
@@ -472,7 +472,8 @@ int mutt_index_menu (void)
        do_buffy_notify = 1;
     }
 
-    mutt_curs_set (0);
+    if (op != -1)
+      mutt_curs_set (0);
 
     if (menu->redraw & REDRAW_FULL)
     {
@@ -520,8 +521,6 @@ int mutt_index_menu (void)
 
       dprint(4, (debugfile, "mutt_index_menu[%d]: Got op %d\n", __LINE__, op));
 
-      mutt_curs_set (1);
-      
 #if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM)
       if (SigWinch)
       {
@@ -537,6 +536,8 @@ int mutt_index_menu (void)
 
       if (op == -1)
        continue; /* either user abort or timeout */
+
+      mutt_curs_set (1);
 
       /* special handling for the tag-prefix function */
       if (op == OP_TAG_PREFIX)

Reply via email to