in reply to Re: loop in C prompt window
in thread loop in C prompt window

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: loop in C prompt window
by starX (Chaplain) on Aug 28, 2007 at 14:29 UTC
    Aha, I thought so, which explains why you're not looking to do this in Bash.

    Now that we've cleared that up, can you explain a little bit more precisely how you would like your program to run? A very basic command line looping prompt would look a little this this:

    while(){ print 'Prompt:> '; readline; last if $_ eq 'quit'; }
    But of course you have to decide what to do with the input when you've actually grabbed it. Or am I misunderstanding how you mean you would like to loop over a large number of commands?