NEWT_SET_SUSPEND_CALLBACK(3) 1 NEWT_SET_SUSPEND_CALLBACK(3)
newt_set_suspend_callback - Set a callback function which gets invoked when user presses the suspend key
SYNOPSIS
void newt_set_suspend_callback (callable $function, mixed $data)
DESCRIPTION
Set a callback function which gets invoked when user presses the suspend key (normally ^Z). If no suspend callback is registered, the sus-
pend keystroke is ignored.
PARAMETERS
o $function
- A callback function, which accepts one argument: data
o $data
- This data is been passed to the callback function
RETURN VALUES
No value is returned.
SEE ALSO
newt_suspend(3), newt_resume(3).
PHP Documentation Group NEWT_SET_SUSPEND_CALLBACK(3)