On Thu, 30 Mar 100, T.E.Dickey wrote:

> probably just the line I indicate below.
> > -#if defined(NCURSES_MOUSE_VERSION) && !defined(WIN_EX) 
> > +#if defined(NCURSES_MOUSE_VERSION) 

I think the problem is actually above this. PDCURSES has never
supported mouse under DOS, to the best of my knowledge. Has anyone
ever gotten mouse support for lynx under DOS, with either SLang or
PDCURSES? The main change was to introduce mouse support for DOS when
PDCURSES is used. I would go back to the previous situation with the
following patch.
                         Doug

--- lynx2-8-3/src/LYStrings.c   Sun Mar 26 19:14:00 2000
+++ lynx2-8-3/src/LYStrings.c.new       Thu Mar 30 06:55:42 2000
@@ -1263,7 +1263,7 @@
 
 #endif                                /* USE_KEYMAPS */
 
-#if defined(NCURSES_MOUSE_VERSION) || defined(PDCURSES)
+#if defined(NCURSES_MOUSE_VERSION) || (defined(PDCURSES) && !defined(__DJGPP__))
 PRIVATE int LYmouse_menu ARGS4(int, x, int, y, int, atlink, int, code)
 {
     static char *choices[] = {
@@ -1395,7 +1395,7 @@
     }
     return retlac;
 }
-#endif /* NCURSES_MOUSE_VERSION */
+#endif /* NCURSES_MOUSE_VERSION  || (PDCURSES && !__DJGPP__) */
 
 #if defined(USE_KEYMAPS) && defined(USE_SLANG)
 
@@ -1954,7 +1954,7 @@
           c = 0x218;
           break;
 #endif /* PDCurses */
-#if defined(NCURSES_MOUSE_VERSION) || defined(PDCURSES)
+#if defined(NCURSES_MOUSE_VERSION) || (defined(PDCURSES) && !defined(__DJGPP__))
        case KEY_MOUSE:
            CTRACE((tfp, "KEY_MOUSE\n"));
            if (code == FOR_CHOICE) {
@@ -1966,7 +1966,7 @@
                getmouse(&event);       /* Completely ignore event - kw */
                c = DO_NOTHING;
            }
-#endif
+#endif /* _WINDOWS */
            else {
 #if !(defined(WIN_EX) && defined(PDCURSES))
                MEVENT event;
@@ -2032,7 +2032,7 @@
                                 links[mouse_link].type == WWW_FORM_LINK_TYPE &&
                                 F_TEXTLIKE(links[mouse_link].form->type))
                            lac = LYK_ACTIVATE;
-#endif
+#endif /* TEXTFIELDS_MAY_NEED_ACTIVATION */
                    }
                    if (lac == LYK_ACTIVATE && mouse_link == -1) {
                        HTAlert("No link chosen");
@@ -2050,7 +2050,7 @@
                    getch();            /* ungetmouse puts KEY_MOUSE back */
                    c = MOUSE_KEY;
                }
-#else /* pdcurses version */
+#else /* WIN_EX && PDCURSES */
 
        /* _WINDOWS 1997/10/18 (Sat) 19:41:59 */
 
@@ -2145,12 +2145,12 @@
                    sprintf(mouse_info, "Mouse = 0x%x, [%s]", c, p);
                    SetConsoleTitle(mouse_info);
                }
-#endif /* !(WIN_EX) */
+#endif /* !(WIN_EX && PDCURSES) */
                if ((c+1) >= KEYMAP_SIZE && (c&LKC_ISLAC))
                    return(c);
            }
            break;
-#endif /* NCURSES_MOUSE_VERSION */
+#endif /* NCURSES_MOUSE_VERSION || (PDCURSES && !__DJGPP__) */
        }
 #endif /* HAVE_KEYPAD */
 #ifdef DJGPP_KEYHANDLER
__ 
Doug Kaufman
Internet: [EMAIL PROTECTED]

Reply via email to