[PDCurses] Problem with halfdelay(), and fix

2002-03-03 Thread William McBrine
The halfdelay() input option is broken in PDCurses -- wgetch() is always either fully blocking or nonblocking. The problem is in pdcurses/getch.c, in the wgetch() function, after a low-level keyboard read is attempted: /* keyboard read leaves value in "key", then: */ if (w->_node

Re: [PDCurses] Problem with halfdelay(), and fix

2002-03-03 Thread William McBrine
On Sun, 3 Mar 2002, I wrote: > [Under DJGPP,] PDCurses is calling usleep() with a 10ms parameter, so > there's no pause. I haven't attempted to fix this yet. I changed the "10" in "waitingtenths = 10*SP->delaytenths" to 2, and changed the napms() parameter from 10 to 50, and indeed it works corr