Programming Guide |
Prepares for return to a Panther application
void sm_return(void);
C only
Call
sm_return
on returning to a Panther application after a temporary exit. This function sets up the operating system channel, and in character-mode initializes the display with the video file'sSETUP
string.Note that
sm_return
does not restore the screen to its state before the call to sm_leave. To restore the screen to its previous state, call sm_rescreen.
#include <smdefs.h>
/* Escape to the UNIX shell for a directory listing */
sm_leave();
sm_system("ls -l");
sm_return();
sm_c_off();
sm_d_msg_line("Hit any key to continue", BLINK | WHITE);
sm_getkey();
sm_d_msg_line("", WHITE);
sm_rescreen();