Re: [hatari-devel] Printing Directly to a Printer

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Am Tue, 20 Oct 2020 16:37:24 -0700 (MST)
schrieb Marshall Lake <marshallelake@xxxxxxxxx>:

> Can the following be used in Hatari to print directly to a printer ?
> ...
> 
>      char buf[77];
>      FILE *lpr;
> 
>      lpr = popen ("lpr", "w");
>      fprintf (lpr, "%s", buf);
>      pclose (lpr);

 Hi!

That certainly requires FreeMiNT and depends on your setup of your
"lpr" program.

If you just want to send some ASCII character to the parallel port, it
might be better to use the "PRN:" pseudo-file with Fopen() instead. See
https://freemint.github.io/tos.hyp/en/gemdos_file.html#Fopen for details.

 Thomas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/