Streams

Streams[] gets a list of all open streams.

Attributes[Streams] := {Protected}

Simple examples

In[1]:= Streams[]
Out[1]= {OutputStream["stdout", 1], OutputStream["stderr", 2]}