I’m using: SWI-Prolog version 8.3.5
I want the code to start without needing a tty attached. For instance, for a server. But the solution has to be cross-platform as well.
But what I’m getting is:
Every way of starting SWI Prolog without a TTY halts immediatly. Even with the --no-tty
option passed to SWI Prolog.
My code looks like this:
test.pl:
:- writeln("Hello world").
Running this without a tty will just make the script halt immediately without writing hello world.