[cups.development] How to display printer status on Mac

Michael R Sweet msweet at apple.com
Wed May 21 07:50:10 PDT 2008


Quanjun Yu wrote:
> 
> 
> Hi CUPS dev team,
> 
>  
> 
> I am trying to display a status message on my Mac.
> 
>  
> 
> What can I do in my CUPS filter?

For general messages:

     fprintf(stderr, "INFO: your status message here\n");

For error messages:

     fprintf(stderr, "ERROR: your status message here\n");

For persistent state:

     fprintf(stderr, "STATE: +state-reason-keyword\n"); // Set state
     fprintf(stderr, "STATE: -state-reason-keyword\n"); // Clear state

Also see:

     http://localhost:631/help/api-filter.html

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list