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: #ifdef HAVE_NAPMS #define SECS2Secs(n) (1000 * (n)) #define Secs2SECS(n) ((n) / 1000.0) #define SECS_FMT "%.3f" #else #define SECS2Secs(n) (n) #define Secs2SECS(n) (n) #define SECS_FMT "%.0f" #endif > Besides S-Lang on Win32 (and possible others) doesn't have > napms(). yes (slang assumes timeouts are multiples of a second). -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net _______________________________________________ Lynx-dev mailing list [EMAIL PROTECTED] http://lists.nongnu.org/mailman/listinfo/lynx-dev
