Programming Guide



sm_return

Prepares for return to a Panther application

void sm_return(void);

Environment

C only

Description

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's SETUP 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.

Example

#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();

See Also

sm_leave, sm_resetcrt