Xref: utzoo comp.unix.questions:22795 comp.unix.wizards:22375 Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!drk From: drk@athena.mit.edu (David R Kohr) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: Problem with nodelay() in curses(3v) in Sun/OS 4.0.3. Summary: Sun/OS routines ahve a known bug. Keywords: System V curses(3v), Sun/OS 4.0.3, nodelay(), halfdelay(), select(). Message-ID: <1990Jun8.223430.2267@athena.mit.edu> Date: 8 Jun 90 22:34:30 GMT References: <1990Jun8.002108.11536@athena.mit.edu> Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 35 In article <1990Jun8.002108.11536@athena.mit.edu> drk@athena.mit.edu (David R Kohr) writes: >I'm having a problem with the System V curses(3v) provided with >Sun/OS 4.0.3. I got the following reply from Carl Smith at Sun in response to a cross-posting of this article to comp.sys.sun: ------- From: cs@Eng.Sun.COM (Carl Smith) Message-Id: <9006080158.AA21762@sparky.Eng.Sun.COM> Received: by kanawha.Eng.Sun.COM (4.1/SMI-4.1) id AA00474; Thu, 7 Jun 90 18:58:45 PDT To: drk@ATHENA.MIT.EDU (David R Kohr) Subject: Re: Problem with nodelay() in curses(3v) in Sun/OS 4.0.3. I discovered the same thing myself about a year ago and filed a bug on it. It's bug #1012523, and it's fixed in SunOS 4.1. Here's the public summary from that bug report: The curses library function wgetch fails when the window is put in no delay mode (via nodelay(win, TRUE)). Characters in the tty input queue are not read, and the return value of the function is incorrect. Carl ------- So I now know that the Sun/OS 4.0.3 nodelay() and halfdelay() System V curses(3v) routines definitely do *not* work properly. Now if someone could tell me how to achieve the same functionality as nodelay() by some other means (perhaps a non-blocking select(2) on the terminal device), that would completely solve my problem. -- David R. Kohr M.I.T. Lincoln Laboratory Group 45 ("Radars 'R' Us") email: DRK@ATHENA.MIT.EDU (preferred) or KOHR@LL.LL.MIT.EDU phone: (617)981-0775 (work) or (617)527-3908 (home)