lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev Re: (patch) - show list of statusline messages from history pag


From: Leonid Pauzner
Subject: lynx-dev Re: (patch) - show list of statusline messages from history page
Date: Mon, 19 Apr 1999 05:00:16 +0400 (MSD)

19-Apr-99 04:31 I wrote:
> * HTAlert, HTUserMsg and HTInfoMsg statusline messages now stored in a cyrcled
>   buffer and accessible from the History Page as LYNXMESSAGES:/ link.
>   This allow us to decrease the messages delay in lynx.cfg when we feel
>   messages too annoying, but have a nice history list for diagnostic purposes.
>   Idea belongs to Bela Lubkin. Buffer of 40 lines long. - LP


* Also add numerous HTProgress messages to LYNXMESSAGES:/ page
  (but not HTReadProgress)



diff -u ../htalert.c ./htalert.c
--- ../htalert.c        Mon Apr 19 03:52:04 1999
+++ ./htalert.c Mon Apr 19 04:51:22 1999
@@ -110,10 +110,9 @@
 PUBLIC void HTProgress ARGS1(
        CONST char *,   Msg)
 {
-    if (TRACE)
-       fprintf(tfp, "%s\n", Msg);
-    else
        statusline(Msg);
+       _store_message(Msg);
+       CTRACE(tfp, "%s\n", Msg);
 }

 /*     Issue a read-progress message.                  HTReadProgress()
@@ -179,7 +178,12 @@
                if (total < -1)
                    strcat(line, gettext(" (Press 'z' to abort)"));
            }
-           HTProgress(line);
+
+           /* do not store the message for history page. */
+           if (TRACE)
+               fprintf(tfp, "%s\n", line);
+           else
+               statusline(line);
        }
     }
 }






reply via email to

[Prev in Thread] Current Thread [Next in Thread]