Skip to content

Sets or removes CTRL event handlers, which allows CLI processes to intercept or ignore CTRL+C and CTRL+BREAK events.

License

Notifications You must be signed in to change notification settings

mageok/cli-signal-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cli-signal-handler

Sets or removes CTRL event handlers, which allows CLI processes to intercept or ignore CTRL+C and CTRL+BREAK events.

Installation

Install the package via composer

composer require mageok/cli-signal-handler

Documentation

use Mageok\CliSignalHandler\CliCtrlScheduler;

CliCtrlScheduler::registerCtrlCEvent($handler1);
CliCtrlScheduler::registerCtrlCEvent($handler2);

About

Sets or removes CTRL event handlers, which allows CLI processes to intercept or ignore CTRL+C and CTRL+BREAK events.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages