| ST_busy | Function (ROM Call 0xE2)

statline.h

void ST_busy (short mode);

Sets the BUSY indicator in the status line.

ST_busy sets the program status indicator to idle, busy or paused, depending of whether mode is ST_IDLE, ST_BUSY or ST_PAUSED (these constants are defined in enum ST_FLAGS). This indicator would be displayed in the status line. In the idle mode, the number of entry/answer pairs in the history area would be displayed, else words "BUSY" or "PAUSE" would be displayed. If ST_busy is called with argument ST_NORMAL, the indicator would be erased. Note that the TIOS event handler always sets "BUSY" indicator before calling an event to an application, and clears it when the application returns from handling the event.
Note: Alternative mode names ACTIVITY_IDLE, ACTIVITY_BUSY and ACTIVITY_PAUSED known from DoorsOS will also be accepted, and these constants are defined in enum ST_ACTIVITIES.

Uses: ST_eraseHelp, ST_flags
Used by: cmd_disptbl, cmd_pause, EV_centralDispatcher, EV_eventLoop, EV_getc, GR3_handleEvent, GS_PlotAll, GZ_Stat, Regraph