set_output/1set_output(+Stream)
makes Stream the current output stream.
Subsequent output predicates such as
write/1 and put/1 will use this stream.
Stream errors (see ref-iou-sfh-est), plus:
instantiation_error
type_error
write/1, put/[1,2]