P
Philip Mak
I am developing a console application that accepts typed commands from
the user. At the same time, it must display incoming data about events
that occur. Events can occur at any time, not just as a result of a
command the user typed, so I need asynchronous input/output. (Think
like in a MUD client, for example.)
Is there an existing Perl module I can use that will handle input and
output for me, making it so that the input line doesn't get mixed with
the output if new output comes while the user is typing, allowing
up-arrow to be pressed to recall previous commands (like with
"readline", except that readline doesn't work asynchronously AFAIK)?
This seems like a problem that should already be solved, so I'd rather
not re-invent the wheel...
the user. At the same time, it must display incoming data about events
that occur. Events can occur at any time, not just as a result of a
command the user typed, so I need asynchronous input/output. (Think
like in a MUD client, for example.)
Is there an existing Perl module I can use that will handle input and
output for me, making it so that the input line doesn't get mixed with
the output if new output comes while the user is typing, allowing
up-arrow to be pressed to recall previous commands (like with
"readline", except that readline doesn't work asynchronously AFAIK)?
This seems like a problem that should already be solved, so I'd rather
not re-invent the wheel...