Turns alternating background status message on or offvoid sm_setstatus(int mode);
When alternating messages are turned on, one message—typically
Ready—displays on the status line while Panther awaits input, and another—normally
Wait—when it is not. If
modeis 0, the messages are turned off.
The status flags are replaced temporarily by messages passed to sm_ferr_reset and related functions. They overwrite messages posted by sm_d_msg_line and sm_setbkstat.
You can edit the text of alternating messages in the message file, where they are stored as
SM_WAIT. You can also embed attribute changes and function key names in these messages, as described in sm_d_msg_line.
#define PAUSE (sm_flush(), sleep(3))
/* Tell people what you're going to tell them. */
sprintf (buf, "You will soon see %s alternating "
"with %s below.",
sm_do_region(3, 0, 80, WHITE, buf);
/* Now tell them. */
PAUSE; /* Shows WAIT */
sm_input(IN_DATA); /* Shows READY */
/* Finally, tell them what you told them. */
sprintf(buf, "That was %s alternating with %s "
"on the status line.",
sm_ferr_reset (0, buf);