[Top][All Lists]

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

Re: [Lynx-dev] options pane quirks

From: Gisle Vanem
Subject: Re: [Lynx-dev] options pane quirks
Date: Fri, 17 Sep 2004 18:08:04 +0200

> I didn't see any sub-second sleeper, so I added one using select(). 
> It's an error to use select() like this on Windows. Hope other targets 
> allow this (i.e. all fd_set to NULL).

Ops, something like this is better. I couldn't test this with djgpp
version under Win-XP since S-Lang doesn't seem to support under Win-XP.

#ifdef USE_MOUSE
static void mouse_select_delay (int msec)
#ifdef _WINDOWS
    Sleep (msec);
    struct timeval tv;

    msec *= 1000;
    tv.tv_sec  = msec / 1000000L;
    tv.tv_usec = msec % 1000000L;
    (void) select (0, NULL, NULL, NULL, &tv);


reply via email to

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