lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev lynx2.8.4dev.8


From: pg
Subject: Re: lynx-dev lynx2.8.4dev.8
Date: Fri, 25 Aug 2000 13:16:30 -0600 (MDT)

In a recent note, Thomas E. Dickey said:

> Date: Fri, 25 Aug 2000 11:43:03 -0400 (EDT)
> 
> very old versions of ncurses (before 1.9.9e) do not have resizeterm.
> 
> > It might have been the putenv()s that interfere with ncurses.
> > I'll also try #ifdef around them.
> 
> hmm - that's a possibility (interfering with the SIGWINCH results).
> 
Here's YA rework; better tested.  This disables the new code
with the putenv()s for many of the platforms I don't care about
anyway.

> I didn't actually say when the cutoff was - I've been rotating from
> one program to another with occasional excursions.  If I'm doing small
> changes then I tend to work on those while I'm looking at the to-do items
> from the mailing list, but if it's a larger change (like this one), I'll

Hmmm.  You've changed your perspective.  When I tendered the OS/390
support, I recall you called 1700 lines "medium".  :-)

-- gil
-- 
StorageTek
INFORMATION made POWERFUL
########################################################################
%%% Created Fri Aug 25 10:50:43 MDT 2000 by target lynx.patch. %%%
diff -bru orig/lynx2-8-4/src/LYCurses.c lynx2-8-4/src/LYCurses.c
--- orig/lynx2-8-4/src/LYCurses.c       Thu Aug 24 19:30:11 2000
+++ lynx2-8-4/src/LYCurses.c    Fri Aug 25 10:49:11 2000
@@ -662,11 +662,12 @@
  * If newterm is not defined, assume a curses subset which
  * supports only initscr.  --gil
  */
-#ifdef    HAVE_NEWTERM
+#if defined(HAVE_NEWTERM) && !defined(NCURSES) && !defined(HAVE_RESIZETERM)
 static SCREEN *LYscreen = NULL;
-#define LYDELSCR(scr) { \
-    delscreen(scr);     \
-    scr = NULL; }
+#define LYDELSCR() { \
+if (recent_sizechange) { \
+    delscreen(LYscreen); \
+    LYscreen = NULL; } }
 /*
  * Surrogates for newterm annd delscreen
  */
@@ -674,7 +675,7 @@
 static WINDOW *LYscreen = NULL;
 #undef  newterm
 #define newterm(type, out, in) (initscr())
-#define LYDELSCR(scr)  /* nothing */
+#define LYDELSCR()  /* nothing */
 #endif /* HAVE_NEWTERM   */
 #endif /* !defined(VMS) && !defined(USE_SLANG) */
 
@@ -810,6 +811,7 @@
         *  If we're not VMS then only do initscr() one time,
         *  and one time only!
         */
+#if defined(HAVE_NEWTERM) && !defined(NCURSES) && !defined(HAVE_RESIZETERM)
        {
            static char lines_putenv[] = "LINES=abcde",
                        cols_putenv[]  = "COLUMNS=abcde";
@@ -824,6 +826,7 @@
            putenv(cols_putenv);
            CTRACE((tfp, "start_curses putenv %s, %s\n", lines_putenv, 
cols_putenv));
        }
+#endif /* HAVE_NEWTERM   */
        if (!(LYscreen=newterm(NULL,stdout,stdin))) {  /* start curses */
            fprintf(tfp, "%s\n",
                gettext("Terminal initialisation failed - unknown terminal 
type?"));
@@ -1051,12 +1054,10 @@
      */
     if(LYCursesON == TRUE)     {
        lynx_enable_mouse (0);
-#if !defined(NCURSES) && !defined(VMS) && !defined(USE_SLANG) && 
(!defined(WIN_EX) || defined(__CYGWIN__))     /* @@@ */
+#if (!defined(WIN_EX) || defined(__CYGWIN__))  /* @@@ */
        if(LYscreen) {
            endwin();   /* stop curses */
-           if (recent_sizechange) {
-               LYDELSCR(LYscreen);
-           }
+           LYDELSCR();
         }
 #endif
     }

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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