in reply to Re^3: Interactive IO with IO::Pipe on Win32
in thread Interactive IO with IO::Pipe on Win32
As many prompts are printed without a newline so that the users input goes on the same line as the prompt, the text of the prompt will not be dispatched into the pipe until a newline is seen, and that won't happen until the user enters one.
I think you hit the nail on the head. For some reason I was thinking that I had the same problem with multi-line prompts (i.e. none of the prompt was visible until after user input). On the contrary, I just tested my script with a program that generates a five line prompt and the entire prompt was visible prior to input.
I guess I'll have to read from the pipe with sysread or something like it. Thanks for your help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Interactive IO with IO::Pipe on Win32
by BrowserUk (Patriarch) on Feb 15, 2006 at 02:13 UTC |