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

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


Hi,

On 10/25/20 11:03 PM, Roger Burrows wrote:
To print from a TOS user program to a Linux device, the easiest way would be
for the TOS program to print to PRN:, and then under Hatari you can route the
output from Hatari either to a file or to lpr.

User can configure to which file Hatari writes
each of the HW communication output port outputs,
or from which host file it reads their inputs.

What kind of file that is, is not a concern of
Hatari, but the host OS, and what user does with
those files.

User can for example play multi-player Atari games
like Populous or MidiMaze over the internet, just
by forwarding the serial or MIDI file data between
the machines with "socat" utility.  How to do
that (on Linux) for MIDI data is explained in:
https://hatari.tuxfamily.org/doc/midi-linux.txt


Note: there is one gotcha when using FIFOs (named
pipes) for this, as FIFOs block until both ends of
the FIFO have connected. When using multiple FIFOs
for communication, it's easy to deadlock things
(unless files are opened as non-blocking, which
Hatari does not do).

Here's an example how to work around that:
https://git.tuxfamily.org/hatari/hatari.git/tree/tools/hatari-local-midi-ring.sh


	- Eero



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