IO::BusyIO::Busy is a Perl module to intercept terminal input while something else is happening. | |
Download |
IO::Busy Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Damian Conway
- Publisher web site:
- http://search.cpan.org/~dconway/
IO::Busy Tags
IO::Busy Description
IO::Busy is a Perl module to intercept terminal input while something else is happening. IO::Busy is a Perl module to intercept terminal input while something else is happening.SYNOPSIS use IO::Busy; my $fh = busy { non_interactive_stuff(); };This module exports a single subroutine, named busy. That subroutine takes a single argument, which must be a block of code. busy forks off a separate process that intercepts and stores any input, then executes the block (in the original process).If the user types anything during the execution of the block, that input does not appear on the STDIN of the original process. Instead the busy block informs the user that their input is not being received, and stores the input in a separate filehandle. That filehandle is then returned by the busy call, at the end of the block's execution, at which time STDIN is reconnected to the process. Requirements: · Perl
IO::Busy Related Software