In the code below, you can see it is very basic. What I want to look at is the sleep proc. I want to know if it is possible to either A, set the sleep proc to wait until keyboard input is given from the user, or B, I can make the program wait at a point like this until keyboard input is given. Like, the first message would display, the user would press "A" or some more sensible key, and the next set of text would display.
I'm probably just missing something extremely obvious that would make this incredibly easy on me, but I wouldn't really be me if I didn't do that. XD
Code:
world << "Hai"
sleep(10)
World << "How are you?"
You are so wonderfully helpful my good sir, now if only you could help me out with my question instead of telling me "You should learn how to program." Or at the very least, do what is probably the best thing, and point me to exactly where I can learn these things?