romm has asked for the wisdom of the Perl Monks concerning the following question:
vec($rin,fileno($game),1) = 1;
vec($rin,fileno(STDIN),1) = 1;
select($rout=$rin, undef, undef, undef);
#Here goes input capture
if (vec($rout, fileno(STDIN), 1)) {
$line = $term->readline('');
# but readline seems to be masked and doesn't
# work
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to combine asyncrhonous I/O and readline?
by merlyn (Sage) on Feb 11, 2002 at 12:38 UTC |