on-execute in drscheme:language:language<%>

The on-execute method is called on DrScheme's eventspace's main thread before any evaluation happens during execution. Use this method to initialize MzScheme's parameters for the user. When this function is called, the user's thread has already been created, as has its custodian. These parameters have been changed from the defaults in MzScheme:

The run-in-user-thread arguments accepts thunks and runs them on the user's eventspace's main thread. These thunks must not raise an exceptions (or drscheme itself will get stuck). In addition, the output ports are not yet functioning, so print outs should be directed to the original drscheme output port, if necessary.