Article View: comp.std.c
Article #2884Curses - need help
From: Sunny Gulati
Date: Wed, 15 May 1991 04:02
Date: Wed, 15 May 1991 04:02
21 lines
1109 bytes
1109 bytes
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
Technical Details
Message-ID:
<cs442a07.674280127@zaphod>Path:
arc1-ca.pugleaf.net!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!cs442a07Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <cs442a07.674280127@zaphod> 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