Some actions inside minus need to performed on certain events regardless of the situation in which that event occured. For example, doing cleanup needs to be done anytime the user exits, regardless of whether the pager is in static or dynamic mode. Hence we need to proper system to tap into some special events and call functions on that event. Hooks are a feature that allows multiple callback functions to be registered with a event and whenever that event occur, all of those functions would be called.
This feature will also allow end-applications to add their own events. For example in a application that fetches data from the internet, whenever the user reaches the end of output, a callback function would be called to fetch more data.
Some actions inside minus need to performed on certain events regardless of the situation in which that event occured. For example, doing cleanup needs to be done anytime the user exits, regardless of whether the pager is in static or dynamic mode. Hence we need to proper system to tap into some special events and call functions on that event. Hooks are a feature that allows multiple callback functions to be registered with a event and whenever that event occur, all of those functions would be called.
This feature will also allow end-applications to add their own events. For example in a application that fetches data from the internet, whenever the user reaches the end of output, a callback function would be called to fetch more data.