identifies the current outputstream.
current_output/1 unifies Stream with the current outputstream.
Stream stream(term)
current_output(S). Succeeds with substitution S <- user_output.
This predicate is part of the ISO-Prolog Standard.
Up read on...