newt_set_suspend_callback

(PECL newt >= 0.1)

newt_set_suspend_callbackSet a callback function which gets invoked when user presses the suspend key

说明

newt_set_suspend_callback ( callable $function , mixed $data ) : void

Set a callback function which gets invoked when user presses the suspend key (normally ^Z). If no suspend callback is registered, the suspend keystroke is ignored.

参数

function

A callback function, which accepts one argument: data

data

This data is been passed to the callback function

返回值

没有返回值。

参见

  • newt_suspend() - Tells newt to return the terminal to its initial state
  • newt_resume() - Resume using the newt interface after calling newt_suspend

相关文章
php frontbase 函数 get or set the user password used with a connectionphp gupnp 函数 set control point callbackphp gupnp 函数 set device callback functionphp firebird/interbase 函数 register a callback function to be called when events are postedphp ldap 函数 set a callback function to do re binds on referral chasingphp mysqlnd ms 函数 sets a callback for user defined read/write splittingphp mysqlnd qc 函数 installs a callback which decides whether a statement is cachedphp mysqlnd qc 函数 sets the callback functions for a user defined procedural storage handlerphp ncurses 函数 set given attributes for soft function key labelsphp newt 函数 set a callback function which gets invoked when user presses the suspend keyphp output control 函数 在ob start中使用的用来压缩输出缓冲区中内容的回调函数。ob start callback function to gzip output bufferphp oci8 函数 register a user defined callback function for oracle database tafphp oci8 函数 unregister a user defined callback function for oracle database tafphp pcntl 函数 retrieve the error number set by the last pcntl function which failedphp sqlite 函数 registers a regular user defined function for use in sql statementsphp uopz 函数 gets previously set hook on function or methodphp uopz 函数 gets a previous set return value for a functionphp uopz 函数 gets the static variables from function or method scopephp mongolog gets the previously set callback functionphp mongolog sets a callback function to be invoked for events
关注编程学问公众号