Added a link to the signals page, so that it can be found more easily.

Xfel 2014-04-21 04:09:32 -07:00
parent c1a0b0a3da
commit 37f0a6c781

@ -1,4 +1,4 @@
This API provides a rudimentary event system. It is primarily intended to be used by libraries, to allow them to be notified of signals. For example, this is used to automatically bind the primary screen to the primary GPU, to check whether the [[terminal|API/Term]] is available, and to execute autorun programs on newly installed file systems.
This API provides a rudimentary event system. It is primarily intended to be used by libraries, to allow them to be notified of [[signals|Signals]]. For example, this is used to automatically bind the primary screen to the primary GPU, to check whether the [[terminal|API/Term]] is available, and to execute autorun programs on newly installed file systems.
- `event.listen(name: string, callback: function): boolean`
Register a new event listener that should be called for events with the specified name. When registering for signal events, this is the name of the signal. Returns `true` if the listener was successfully registered, `false` if it already was registered for this event type.