2 * Printing interface for PuTTY.
9 struct printer_job_tag
{
13 printer_job
*printer_start_job(char *printer
)
15 printer_job
*ret
= smalloc(sizeof(printer_job
));
17 * On Unix, we treat cfg.printer as the name of a command to
18 * pipe to - typically lpr, of course.
20 ret
->fp
= popen(cfg
.printer
, "w");
28 void printer_job_data(printer_job
*pj
, void *data
, int len
)
33 fwrite(data
, 1, len
, pj
->fp
);
36 void printer_finish_job(printer_job
*pj
)