Synopsis
typedef enum {
NB_REGISTER_MODULE_EVENT,
NB_COLD_START_EVENT,
NB_SIGNON_EVENT,
NB_CLEAR_EVENT,
NB_RESET_NAME_EVENT,
NB_SAVE_WORK_EVENT,
NB_AUTOEXEC_EVENT,
NB_RUNNING_EVENT,
NB_READY_EVENT,
NB_BYE_EVENT
} nb_event_t;
Description
nb_event_t describes an event that is broadcast to all installed
modules. The events are:
-
NB_REGISTER_MODULE_EVENT
- CoreBASIC is registering the module and providing the assigned
module index.
-
NB_COLD_START_EVENT
- CoreBASIC is starting from cold: the module should make any
required (non-CoreBASIC) initializations.
-
NB_SIGNON_EVENT
- CoreBASIC is signing on—the module has an opportunity to
display additional sign-on details.
-
NB_CLEAR_EVENT
- CoreBASIC is clearing data when the program is changing or
being prepared for execution.
-
NB_RESET_NAME_EVENT
- CoreBASIC requests that the user program name be reset.
-
NB_SAVE_WORK_EVENT
- CoreBASIC requests that the user program is saved to disk.
-
NB_RUNNING_EVENT
- Indicate whether CoreBASIC is running user code or not.
The parameter passed with the event is non-zero when
running user code.
-
NB_READY_EVENT
- Indicates that CoreBASIC is at the ready prompt and
waiting for input.
-
NB_AUTOEXEC_EVENT
- Request that a file be executed. The file name is passed
in nb_program_name.
-
NB_BYE_EVENT
- Broadcast when closing a CoreBASIC session with BYE.
Modules can close down whatever they need and, optionally,
terminate CoreBASIC.