Standard streams - stdin - stdout - stderr

Do you normally use a standard stream expecting it work to only get an error like

ERROR: with_output_to/2: stream `stdout' does not exist

Trying to find how SWI-Prolog defines them doesn’t always result in a hit.

Here is the documentation page you seek

Predefined stream aliases