Switch to the console a given window's displayed on
int PtWindowConsoleSwitch( PhRid_t rid );
This function causes PWM to switch the current display to the console where the window specified by rid is located. The rid is the region of a task window, and may be obtained with PtWidgetRid().
Window Management chapter of the Photon Programmer's Guide