How to make a program wait for an event?

Printable View