12.07.2015 Views

JYACC FORMAKER C Programmer's Guide Contents 1 ... - Prolifics

JYACC FORMAKER C Programmer's Guide Contents 1 ... - Prolifics

JYACC FORMAKER C Programmer's Guide Contents 1 ... - Prolifics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NAMESYNOPSISsm_setstatus - turn alternating background status message on or offvoid sm_setstatus (mode)int mode;DESCRIPTIONIf mode is non-zero, alternating status flags are turned on. After this call,one message (normally Ready) is displayed on the status line while the keyboardis open for input, and another (normally Wait) when it is not. If mode is zero,the messages are turned off.The status flags will be replaced temporarily by messages passed to sm_err_resetor a related function. They will overwrite messages posted with sm_d_msg_line orsm_setbkstat.The alternating messages are stored in the message file as SM_READY and SM_WAIT,and can be changed there. Attribute changes and function key names can beembedded in the messages; refer to sm_d_msg_line for instructions.VARIANTS AND RELATED FUNCTIONSEXAMPLEsm_setbkstat (message, attr);#include "smdefs.h"#include "smerror.h"#define PAUSE sleep (3)char buf[100];/* Tell people what you're gonna tell 'em. */sprintf (buf, "You will soon see %s alternating with %s below.",sm_msg_get (SM_READY), sm_msg_get (SM_WAIT));sm_do_region (3, 0, 80, WHITE, buf);/* Now tell 'em. */sm_setstatus (1);PAUSE; /* Shows WAIT */sm_openkeybd (); /* Shows READY *//* Finally, tell 'em what you told 'em. */sprintf (buf, "That was %s alternating with %s on the status line.",sm_msg_get (SM_READY), sm_msg_get (SM_WAIT));sm_err_reset (buf);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!