lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev pre.7 patch


From: Wayne Buttles
Subject: lynx-dev pre.7 patch
Date: Sun, 4 Oct 1998 19:03:36 -0400 (EDT)

Here is one more Wayne'ism to get pre.7 to compile with BC and my
pdcurses.  I think this logic was lost at some point.

*** LYCurses.org      Wed Sep 30 15:06:48 1998
--- LYCurses.c        Wed Sep 30 20:04:08 1998
***************
*** 873,884 ****
--- 873,892 ----
  #else

  #ifdef NCURSES_MOUSE_VERSION
+ #if defined(__BORLANDC__) && defined(__PDCURSES__)
+     if (state)
+     {
+         SetConsoleMode(hConIn, ENABLE_MOUSE_INPUT | ENABLE_WINDOW_INPUT);
+         FlushConsoleInputBuffer(hConIn);
+     }
+ #else
      /* Inform ncurses that we're interested in knowing when mouse
       * button 1 is clicked */
      if (state)
        mousemask(BUTTON1_CLICKED | BUTTON3_CLICKED, NULL);
      else
        mousemask(0, NULL);
+ #endif /* __BORLANDC__ and __PDCURSES__ */
  #endif /* NCURSES_MOUSE_VERSION */

  #if defined(DJGPP) && !defined(USE_SLANG)


reply via email to

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