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
In reply to How to combine asyncrhonous I/O and readline? by romm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |