How to redirect stdout to an open terminal window?

I am having trouble with the function redirect_stdout. I would like to do the following on my mac

  1. Open up a terminal window with julia
  2. Open up a second terminal and run tty to get a file name I can pipe results to
  3. Use some combination of open("...terminal name", "w") and redirect_stdout to pipe all output from my julia window to the open window. (Or figure out how to set the global variable stdout to this new file).

This is for repl usage, not any particular function.

I can’t seem to do it. redirect_stdout(io) doesn’t seem to do anything for the repl. Can anyone help me out?