current_output(X) succeeds if the name of the current output stream matches with X, else fails.
Examples
See Input and Output
current_output(X) - match a term to the current output stream.current_output(X) succeeds if the name of the current output stream matches with X, else fails.