Curses - need help

Sunny Gulati cs442a07 at cs.iastate.edu
Wed May 15 14:02:07 AEST 1991


Hi, I need help with curses, I dont know if this is the place to post 
this article but I will try anyway.

Working on a unix system, how do you get it to check if a keypress is
waiting for you?  I have it in nonl() raw() noecho(), and I have a part
of code that says:

if (typeahead(stdin)) {
		do my stuff
}
monitor_incoming_lines();

Does typeahead return True if there are keypresses?  
are there any other libraries other than curses which will help me?

(THe above segment seems to always evaluate typeahead to true.... )

THnks for any replies.

Sunny G
taa65 at ccvax.iastate.edu



More information about the Comp.std.c mailing list