Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!mp.cs.niu.edu!ux1.cso.uiuc.edu!news.iastate.edu!cs442a07 From: cs442a07@cs.iastate.edu (Sunny Gulati) Newsgroups: comp.std.c Subject: Curses - need help Message-ID: Date: 15 May 91 04:02:07 GMT Sender: news@news.iastate.edu (USENET News System) Reply-To: taa65@ccvax.iastate.edu Organization: Iowa State University, Ames IA Lines: 21 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@ccvax.iastate.edu