Navigation

Operators and Keywords

Function List:

C++ API

: id = add_input_event_hook (fcn)
: id = add_input_event_hook (fcn, data)

Add the named function or function handle fcn to the list of functions to call periodically when Octave is waiting for input.

The function should have the form

fcn (data)

If data is omitted, Octave calls the function without any arguments.

The returned identifier may be used to remove the function handle from the list of input hook functions.

See also: remove_input_event_hook.

Package: octave