Lines Matching defs:status
37 * simple processing of printer status reports, usually obtained when
38 * \024 is sent to the printer. The returned status lines look like:
41 * %%[ status: idle; source serial 25 ]%%
42 * %%[ status: waiting; source serial 25 ]%%
43 * %%[ status: initializing; source serial 25 ]%%
44 * %%[ status: busy; source serial 25 ]%%
45 * %%[ status: printing; source serial 25 ]%%
46 * %%[ status: PrinterError: out of paper; source serial 25 ]%%
47 * %%[ status: PrinterError: no paper tray; source serial 25 ]%%
61 * status report, which always happens when the paper runs out.
79 * recognized as a status report is written on stdout. It seems to
131 Status status[] = STATUS; /* for converting status strings */
134 int tostdout = FALSE; /* non-status stuff goes to stdout? */
231 * line. Everything not recognized as a printer status report will go
280 case 't': /* non-status stuff goes to stdout */
552 int i; /* index of new state in status[] */
558 * Sends a status request to the printer and tries to read the response.
573 if (strcmp(state = strtok(NULL, " :;"), "status") == 0)
577 for (i = 0; status[i].state != NULL; i++)
578 if (strcmp(state, status[i].state) == 0)
581 if (status[i].val != laststate || debug == ON)
584 if (tostdout == TRUE && status[i].val == UNKNOWN && curfile > 0)
587 return(laststate = status[i].val);
720 sprintf(sbuf, "%%%%[ status: endofjob ]%%%%\n");