_CP_pick_env sets the application to a standard D3 environment. When using this setting, all terminal input and output must be done via D3 routines only (execute, print, crt). The default environment after logging on to D3 is _CP_pick_env.
int _CP_pick_env()
This function returns -1 if an error occurs. The error code is contained in _CP_errno.
This function requires considerable amounts of CPU.
_CP_pick_env();