PDA

View Full Version : C terminal app - poll()/pselect()



spadewarrior
November 20th, 2008, 04:17 AM
I am writing a terminal app which contains a loop that processes a lot of information over a long period of time. I was hoping to be able to pause it by pressing a key and unpause again by pressing another. Is this possible with polling or pselect? Frankly the man pages are bewildering so I have no idea!

Can anybody suggest some nice functions or link to somewhere with some examples to see how they work?

Thanks.

spadewarrior
November 21st, 2008, 03:35 PM
Does anyone know the flag to link signal.h to a program in gcc?