POE::Component::TSTP - A POE Component to handle Ctrl-Z
use POE; use POE::Component::TSTP; POE::Component::TSTP->create(); # Rest of your POE program here
By default, POE applications do not respond to Ctrl-Z due to slightly strange signal handling semantics. This module fixes that.
You can pass in two options to the create() routine:
create()
Alias
An Alias for the component. By default it is called "tstp_handler".
PreSuspend
A subref that will be called just before suspending your program.
PostSuspend
A subref that will be called just after your program has returned from suspension (usually via the fg command).
fg
Matt Sergeant, matt@sergeant.org
This is free software. You may use it and distribute it under the same terms as perl itself.
To install POE::Component::TSTP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::TSTP
CPAN shell
perl -MCPAN -e shell install POE::Component::TSTP
For more information on module installation, please visit the detailed CPAN module installation guide.