Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!ncar!gatech!mcnc!rti!dg-rtp!gamecock!hagins From: hagins@gamecock.rtp.dg.com (Jody Hagins) Newsgroups: comp.unix.programmer Subject: Re: How can I detect waiting characters in a curses application ? Keywords: curses typeahead Message-ID: <1990Dec6.201715.5139@dg-rtp.dg.com> Date: 6 Dec 90 20:17:15 GMT References: <677@ntpdvp1.UUCP> Sender: usenet@dg-rtp.dg.com (Usenet Administration) Reply-To: hagins@gamecock.rtp.dg.com (Jody Hagins) Organization: Data General Corporation, Research Triangle Park, NC Lines: 28 In article <677@ntpdvp1.UUCP>, samc@ntpdvp1.UUCP (Sam Christie) writes: |> Would some kind sole tell me the name of the curses function |> which checks for input without blocking ? If none exists, then please |> read on and help me create one. From the curses manpages... nodelay(win, bf) WINDOW *win; bool bf; When set, this option causes wgetch() to be a non-blocking call. If no input is ready, wgetch() returns ERR. If disabled, wgetch() hangs until a key is pressed. -- Jody Hagins hagins@gamecock.rtp.dg.com Data General Corp. 62 Alexander Dr. RTP, N.C. 27709 (919) 248-6035