NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/52063: halfdelay() does not honour timeout value
The following reply was made to PR lib/52063; it has been noted by GNATS.
From: Onno van der Linden <o.vd.linden%quicknet.nl@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: lib/52063: halfdelay() does not honour timeout value
Date: Sat, 11 Mar 2017 18:00:33 +0100
Possible fix is to check in __delay() and __nodelay() for
half_delay mode and return OK. xrestop does work correct now.
--- /usr/src/lib/libcurses/tty.c.orig 2017-03-11 17:53:02.089562699 +0100
+++ /usr/src/lib/libcurses/tty.c 2017-03-11 17:54:37.606593383 +0100
@@ -291,7 +291,8 @@
if (_cursesi_screen->endwin)
__restartwin();
- if (_cursesi_screen->notty == TRUE)
+ if (_cursesi_screen->notty == TRUE ||
+ _cursesi_screen->half_delay == TRUE)
return OK;
_cursesi_screen->rawt.c_cc[VMIN] = 1;
_cursesi_screen->rawt.c_cc[VTIME] = 0;
@@ -319,7 +320,8 @@
if (_cursesi_screen->endwin)
__restartwin();
- if (_cursesi_screen->notty == TRUE)
+ if (_cursesi_screen->notty == TRUE ||
+ _cursesi_screen->half_delay == TRUE)
return OK;
_cursesi_screen->rawt.c_cc[VMIN] = 0;
_cursesi_screen->rawt.c_cc[VTIME] = 0;
Home |
Main Index |
Thread Index |
Old Index