/* default printer name use default printer queue as well in
if (pprinter_data->printer == "mydeskjet")
pprinter_data->printer_fp = popen("lpr", "w");
sprintf(cmd, "lpr -P %s", pprinter_data->printer);
pprinter_data->printer_fp = popen(cmd, "w");
First, can you document the use of "mydeskjet"? Maybe the name "default"
would be clearer. Secondly, can you make command configurable? I'd like
to use "kprinter" instead of "lpr" since this gives me some extra
options for the printer.
if (!pos2 || (*pos2 == (char) 0x00))
pprinter_data->driver = "HP LaserJet IIIP";
/* no p
rinter driver supplied set default */
pprinter_data->driver = xmalloc(strlen(pos2) + 1);
Can you default to a different printer, for instance 'HP LaserJet 4'?
Currently, one can only choose a resultion of 300x300dpi but most
printers support 600x600 dpi. In addition, can you document the '-r
printer:<name>=<driver>' syntax? The =driver is nowhere explained.