lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev Another DOS patch for lynx2.8.1dev.17


From: Doug Kaufman
Subject: lynx-dev Another DOS patch for lynx2.8.1dev.17
Date: Sun, 5 Jul 1998 17:48:56 -0700 (PDT)

When compiling lynx with EXEC_LINKS enabled, I found some tweaks that were
necessary to get it to function properly under DOS with DJGPP.
                             Doug

*** lynx2-8-1/src/LYGetFile.c   Thu Apr 23 05:35:22 1998
--- lynx2-8-1/src/LYGetFile.c.new       Sat Jul  4 23:58:16 1998
***************
*** 429,434 ****
--- 429,438 ----
                        /*
                         *  Run the command.
                         */
+ #ifdef __DJGPP__
+               __djgpp_set_ctrl_c(0);
+               _go32_want_ctrl_break(1);
+ #endif /* __DJGPP__ */
                        if (strstr(p,"//") == p+9)
                            system(p+11);
                        else
***************
*** 442,454 ****
--- 446,466 ----
  #endif /* !VMS */
                            printf("\n%s", RETURN_TO_LYNX);
                            fflush(stdout);
+ #ifdef DJGPP_KEYHANDLER
+                           getxkey();
+ #else
                            LYgetch();
+ #endif /* DJGPP_KEYHANDLER */
  #ifdef VMS
                            {
                              extern BOOLEAN HadVMSInterrupt;
                              HadVMSInterrupt = FALSE;
                            }
  #endif /* VMS */
+ #ifdef __DJGPP__
+               __djgpp_set_ctrl_c(1);
+               _go32_want_ctrl_break(0);
+ #endif /* __DJGPP__ */
                        }
                        start_curses();
                        LYAddVisitedLink(doc);

__
Doug Kaufman
Internet: address@hidden (preferred)
          address@hidden

reply via email to

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