![]() | ![]() | Programming Guide |
Prepares for return to a Panther application
void sm_return( void );
C only
Call
sm_returnon 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'sSETUPstring.Note that
sm_returndoes not restore the screen to its state before the call tosm_leave. To restore the screen to its previous state, usesm_rescreen.
#include <smdefs.h>
/* Escape to the UNIX shell for a directory listing */
sm_leave ();
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 ();