The routine gAddEventType() adds an event type to the list of event types which may be expected in subsequent calls to gWaitForEvent() and sets the preferred event type to intype. The routine gAddEventType() has the effect of enabling all the implements that may generate the specified data type and sets the terminal in the mode for sending that data. The terminal will remain in that mode until:
(a) Another call to gAddEventType() requesting a different event type
(b) A call to gRemoveEventType() deleting the event type
(c) The terminal operator changes the mode by local action
The routine gAddEventType() must be called before any data can be returned from the routine gWaitForEvent().