[Top][All Lists]

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

Re: [Lynx-dev] options pane quirks

From: Thomas Dickey
Subject: Re: [Lynx-dev] options pane quirks
Date: Fri, 17 Sep 2004 14:06:00 -0400 (EDT)

On Fri, 17 Sep 2004, Gisle Vanem wrote:

> > > I didn't see any sub-second sleeper, so I added one using select().
> >
> > napms() in (n)curses does that.
> > It's listed in pdcurses' header (may work on windows).
> I saw that, but left the idea because of (in HTalert.c):
> #ifdef HAVE_NAPMS
> #define LYSleep(n) napms(n)
> #else
> Shouldn't that be
> #define LYSleep(n) napms(1000*(n))

no - it's awkward, but this chunk in LYCurses.h does accommodate it:

#define SECS2Secs(n) (1000 * (n))
#define Secs2SECS(n) ((n) / 1000.0)
#define SECS_FMT "%.3f"
#define SECS2Secs(n) (n)
#define Secs2SECS(n) (n)
#define SECS_FMT "%.0f"

> Besides S-Lang on Win32 (and possible others) doesn't have
> napms().

yes (slang assumes timeouts are multiples of a second).

Thomas E. Dickey

reply via email to

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