lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev Bug in DOS port with SLANG and DJGPP_KEYHANDLER


From: Doug Kaufman
Subject: Re: lynx-dev Bug in DOS port with SLANG and DJGPP_KEYHANDLER
Date: Fri, 29 May 1998 23:42:20 -0700 (PDT)

On Fri, 29 May 1998, I wrote:

> The version of lynx 1.8.1dev.13 that I built with S-Lang 1.2.2 and the
> DJGPP keyhandler loses its socket whenever the rendering of a http URL
> is interrupted with "z". I think this relates to HTCheckForInterrupt in
> LYUtils.c. I will be trying to fix this, but it is now a known bug for

The following patch fixes this problem, as far as I can tell. I just
updated the binary in the archive on my web and ftp sites to reflect
this patch. Thanks to John Lewis for pointing out this problem.
                             Doug


*** lynx2-8/src/LYUtils.c       Sat May 23 19:16:00 1998
--- lynx2-8/src/LYUtils.c.new   Fri May 29 08:05:32 1998
***************
*** 16,21 ****
--- 16,24 ----
  #ifdef DOSPATH
  #include <HTDOS.h>
  #endif
+ #ifdef DJGPP_KEYHANDLER
+ #include <bios.h>
+ #endif /* DJGPP_KEYHANDLER */
  #ifdef DISP_PARTIAL
  #include <LYKeymap.h>
  #endif /* DISP_PARTIAL */
***************
*** 2059,2065 ****
--- 2062,2072 ----
        Note that this isn't taking possible SOCKSification
        and the socks_flag into account, and may fail on the
        slang library's select() when SOCKSified. - FM **/
+ #ifdef DJGPP_KEYHANDLER
+     if (0 == _bios_keybrd(_NKEYBRD_READY))
+ #else
      if (0 == SLang_input_pending(0))
+ #endif /* DJGPP_KEYHANDLER */
        return(FALSE);
  
  #else /* Unix curses: */
__
Doug Kaufman
Internet: address@hidden (preferred)
          address@hidden

reply via email to

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