Programming Guide |
Prepares to temporarily leave a Panther application
void sm_leave(void);
C only
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:
- Clears the physical screen, but not the internal screen image.
- Resets the operating system channel.
- Resets the terminal with the
RESET
sequence found in the video file.
#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();