Programming Guide |
Flushes the status line
void sm_m_flush(void);
sm_m_flush
forces Panther to display updates to the status line. This is useful if you want to display the status of an operation with sm_d_msg_line without flushing the entire display likesm_flush
.
#include <smdefs.h>
/* Process a big pile of records, providing
* status as we go.
*/
char buf[80];
int k;
k = 0;
do {
sprintf(buf, "Processing record %d", k + 1);
sm_d_msg_line(buf, REVERSE | WHITE);
sm_m_flush();
} while (process(records[k++]) >= 0);