How can I detect waiting characters in a curses application ?

Jody Hagins hagins at gamecock.rtp.dg.com
Fri Dec 7 07:17:15 AEST 1990


In article <677 at ntpdvp1.UUCP>, samc at 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 at gamecock.rtp.dg.com    
Data General Corp.      
62 Alexander Dr.        
RTP, N.C.  27709        
(919) 248-6035          



More information about the Comp.unix.programmer mailing list