In a recent note, Thomas E. Dickey said:

> Date: Fri, 21 Dec 2001 11:25:51 -0500 (EST)
> >
> > Tom:  Would you like me to add some more CTRACEs in the
> > resize code in LYCurses.c?
> 
> that might help (CTRACE's are where they are to solve problems we've
> encountered).
> 
I hope I didn't build up anyone's hopes falsely.  :-)
Just more tracing, to insert ad lib.

-- gil
-- 
StorageTek
INFORMATION made POWERFUL
%%% Created Fri Dec 21 10:03:04 MST 2001 by target lynx.patch. %%%
diff -bru orig/lynx2-8-5/src/LYCurses.c lynx2-8-5/src/LYCurses.c
--- orig/lynx2-8-5/src/LYCurses.c       Sun Nov 18 18:37:14 2001
+++ lynx2-8-5/src/LYCurses.c    Fri Dec 21 09:49:28 2001
@@ -757,6 +757,7 @@
 #endif
 }
 
+#define NEWTERM_NAME "newterm"
 #if       !defined(VMS) && !defined(USE_SLANG)
 /*
  * If newterm is not defined, assume a curses subset which
@@ -766,6 +767,7 @@
 static SCREEN *LYscreen = NULL;
 #define LYDELSCR() { \
 if (recent_sizechange) { \
+    CTRACE((tfp, "Screen size: delscreen()\n")); \
     delscreen(LYscreen); \
     LYscreen = NULL; } }
 /*
@@ -773,6 +775,8 @@
  */
 #else  /* HAVE_NEWTERM   */
 static WINDOW *LYscreen = NULL;
+#undef  NEWTERM_NAME 
+#define NEWTERM_NAME "initscr"
 #undef  newterm
 #define newterm(type, out, in) (initscr())
 #define LYDELSCR()  /* nothing */
@@ -907,6 +911,7 @@
      * If we are VMS then do initscr() everytime start_curses()
      * is called!
      */
+    CTRACE((tfp, "Screen size: initscr()\n"));
     initscr(); /* start curses */
 #else  /* Unix: */
 
@@ -942,12 +947,14 @@
        }
 #endif /* defined(__MVS__) */
 #endif /* !(defined(NCURSES) && defined(HAVE_RESIZETERM)) */
+       CTRACE((tfp, "Screen size: %s()\n", NEWTERM_NAME));
        if (!(LYscreen = newterm(NULL,stdout,stdin))) {  /* start curses */
            fprintf(tfp, "%s\n",
                gettext("Terminal initialisation failed - unknown terminal type?"));
            exit_immediately (EXIT_FAILURE);
        }
 #else
+       CTRACE((tfp, "Screen size: initscr()\n"));
        initscr();
 #endif /* HAVE_NEWTERM */
        lynx_called_initscr = TRUE;
@@ -956,6 +963,7 @@
        size_change(0);
        recent_sizechange = FALSE; /* prevent mainloop drawing 1st doc twice */
 #endif /* SIGWINCH */
+       CTRACE((tfp, "Screen size is now %d x %d\n", LYlines, LYcols ));
 
 #ifdef USE_CURSES_PADS
        if (LYuseCursesPads) {

Reply via email to