NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/52063: halfdelay() does not honour timeout value
>Number: 52063
>Category: lib
>Synopsis: timeout value in halfdelay() not honoured
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 11 12:20:00 +0000 2017
>Originator: Onno van der Linden
>Release: NetBSD 7.99.65
>Organization:
>Environment:
System: NetBSD sheep 7.99.65 NetBSD 7.99.65 (SHEEPKMS) #1: Mon Mar 6 17:11:40 CET 2017 onno@sheep:/sys/arch/i386/compile/SHEEPKMS i386
Architecture: i386
Machine: i386
>Description:
halfdelay() in the curses library has a timeout value in
tenths of seconds that does not seem to be honoured.
pkgsrc/x11/xrestop uses it and it doesn't refresh the
screen with new info but waits for input instead.
>How-To-Repeat:
#include <curses.h>
#include <stdio.h>
main()
{
int c;
initscr();
halfdelay(20);
c = wgetch(stdscr);
fprintf(stderr,"c = %d\n",c);
}
This should quit after 2 seconds and print c = -1.
>Fix:
No idea yet.
Home |
Main Index |
Thread Index |
Old Index