lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV ac-0.24 and clearok


From: Foteos Macrides
Subject: Re: LYNX-DEV ac-0.24 and clearok
Date: Sat, 17 May 1997 21:55:26 -0500 (EST)

"John E. Davis" <address@hidden> wrote:
>   According to the curses man page, clearok is to be used when the
>status of the display is unknown and it will cause the screen to be
>completely redrawn upon refresh.  Unfortunately, this is happening in
>situations where I see no reason for it and its use is defeating the
>screen management optimization routines.  For example, connect to
>www.altavista.com and select a Usenet search.  When the box that pops
>up goes away, then screen will get redrawn unnecessarily.  Is there
>any reason for the use of this function in the Forms code?  To be
>quite honest, I see no reason for its use at all if the display is
>properly managed.  Of course, if the user requests a redraw of the
>screen then by all means clear the screen and redraw it.
>
>Comments?
>
>As a quick fix, I made the change:
>
>--- LYCurses.c.orig    Sat May 17 17:23:19 1997
>+++ LYCurses.c Sat May 17 19:29:27 1997
>@@ -54,7 +54,7 @@
> PUBLIC void LY_SLrefresh NOARGS
> {
>     if (FullRefresh) {
>-        SLsmg_touch_lines(0, LYlines);
>+        /* SLsmg_touch_lines(0, LYlines); */
>       FullRefresh = FALSE;
>     }
>     SLsmg_refresh();

        That change would again make clearok(curscr, TRUE) disfunctional
with slang.  I'm not sure what you mean by "if the display is properly
managed".  Things can be written to the screen which slang didn't write,
and thus doesn't know about.  If you make clearok(curscr, TRUE)
disfunctional again, you won't be able to get rid of them.

                                Fote

=========================================================================
 Foteos Macrides            Worcester Foundation for Biomedical Research
 address@hidden         222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

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