Nick Drage wrote:
> Hi,
>
> Quite a simple request, but I've had trouble finding an answer.
>
> I'd like my program to wait until the user presses any key, and then
> just continue.  Is there an easy way to do this?  A way without
> modules?

Hi Nick.

This will do the trick:

    while (1) {
        print "Press any key to continue... ";
        getc;
        print "LOOP\n";
    }

But you must still have the STDIN handle opened on the
console (which it is by default).

HTH,

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to