Re: [hatari-devel] Printing Directly to a Printer |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Printing Directly to a Printer
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sun, 25 Oct 2020 17:43:01 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1603644183; bh=Vu+CiqSUCegR1hNYWKepnCKXEfVcjK8p/we3YEW5Y5U=; h=Date:From:To:Subject:From; b=D0VmNlTcOrNvvXqesvp6TYq/QyoTuY7E2elRLhoLWetBzL94TmTrnwEChrLPJieuj Q+dViejjsxHtgLJP+s8uAxCfrDZmkPwLb+WBDpsWEmn0C/FLxtaPZxwctsz4Xvz3vq ODAYpxR+yltOGuSr827IClkyAbt6IQGJcpOKy+sU83zFKHKPO/xmtVZR6I51YjLin7 pqnkubQ4GbupkXR+AgGraZKiUTUP44g+dC3mw/drXp1udda47adH4gCKlAhEG4pWEu DAMguHsKP7/C6RWEBjnyIhXsGjp3rICpIPCTnw5ZAgTAmr1LVHkWFwmG4QhXrWeVR9 vaFgMma/39big==
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