Programming Guide



sm_leave

Prepares to temporarily leave a Panther application

void sm_leave(void);

Environment

C only

Description

sm_leave lets you leave a Panther application temporarily—for example, to escape to the command interpreter or execute some graphics functions. When you call this function before leaving, sm_leave performs these tasks:

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_return