On 11/26/07, Ryan Moszynski <[EMAIL PROTECTED]> wrote:

> here is the client being run, i am unsuccessfully trying to print
> "input>" at the beginning of the 10 and 13 lines, which were user
> input:

>     $handle->autoflush(1);              # so output gets there right away

That's the right idea; but I think one problem is that you don't also
have autoflush turned on for your program's STDOUT. As a result, your
"input>" prompt gets stuck in a buffer, and comes out later than you
intended.

>     print $byte3."\n input> ";

>     while(sysread($handle, $byte, 4)) {

It looks as if your prompt is printed before your main input loop
begins. That would mean that the prompt will print only once, instead
of printing again each time you're ready for input. To have a prompt
every time, you need to print the prompt inside your main input loop.

Does that get you closer to a solution? Good luck with it!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to