WriteTerm3
Implements ISO's write_term/3: like WriteTerm2, but writing to the output stream identified by the first argument (an alias or $stream(...) term) instead of the current output, with the term and options shifted to the second and third arguments respectively.
Throws
if the first or third argument is unbound.
if the first argument does not identify an open channel.
(write_option) if an element of the third argument is not one of the recognized option shapes.
Fails, rather than erroring, if the channel is closed.
if the third argument is bound but not a list.