wezterm.emit resolves the registered callback(s) for the specified
event name and calls each of them in turn, passing the additional
arguments through to the callback.
If a callback returns
false then it prevents later callbacks from
being called for this particular call to
false to indicate that no additional/default processing
should take place.
If none of the callbacks returned
true to indicate that default processing should take
This function has no special knowledge of which events are defined by wezterm, or what their required arguments might be.
See wezterm.on for more information about event handling.