lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev Lynx idle-loop


From: Doug Kaufman
Subject: Re: lynx-dev Lynx idle-loop
Date: Wed, 17 Jul 2002 18:51:16 -0700 (PDT)

On Wed, 17 Jul 2002, Gisle Vanem wrote:

> I once committed this change for Watt-32/djgpp in HTdos.c:
> ----------------------------------
> int getxkey (void)
> {
>     __dpmi_regs r;
> 
>     /* poll tcp/ip lib and yield to DPMI-host while nothing in
>      * keyboard buffer (head = tail) (simpler than kbhit).
>      */
>     while (_farpeekw(_dos_ds, 0x41a) == _farpeekw(_dos_ds, 0x41c))
>     {
>        tcp_tick (NULL);
>        __dpmi_yield();
>     }
> ..
> ----------------------------------
> 
> This no longer (as of 2.8.4dev?) works; tcp_tick() isn't called. Hence
> ping's and closing sockets aren't handled.
> 
> In LYstring.c there is "#define GetChar getxkey". I tried to follow this 
> code, but failed to understand how keypresses are read.
> 
> Here are some of my CFLAGS:
> USE_SLANG, USE_MOUSE, FANCY_CURSES, IGNORE_CTRL_C,
> DJGPP_KEYHANDLER.

I just looked at a 2.8.5dev.8 that I compiled with slang with DJGPP.
I don't have FANCY_CURSES defined, nor USE_MOUSE. I thought that
USE_MOUSE was in lynx.cfg rather than a CFLAG, and last time I checked
slang didn't support mouse under DOS. Has this changed? It looks like
your "while" condition is the same as is used in "kbhit", so it ought
to apply when there is no keypress.

I don't understand how you got FANCY_CURSES defined when using slang?
Which options did you use when you ran "configure"? I don't know if any
of this applies to your question about tcp_tick being called, but it
looks unusual. How do I tell if tcp_tick is being called?

This is the set of options I used to configure lynx for slang under
DJGPP:

> #!/bin/sh
> CFLAGS="-O2 -DIGNORE_CTRL_C -I/djgpp/watt32/inc" \
> LIBS="-L/djgpp/watt32/lib -liconv" \
> ./configure \
> --with-screen=slang \
> --disable-full-paths \
> --enable-addrlist-page \
> --enable-change-exec \
> --enable-charset-choice \
> --enable-default-colors \
> --enable-exec-links \
> --enable-externs \
> --enable-file-upload \
> --enable-nls \
> --enable-prettysrc \
> --enable-read-eta \
> --enable-source-cache \
> --enable-nested-tables \
> --with-zlib \
> --with-ssl
                          Doug
__ 
Doug Kaufman
Internet: address@hidden


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

reply via email to

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