tout_set_redir
stream filename
This command can be used to enable redirection of any output or error to a
file. Output also still appears in the appropriate window. stream should
be one of stdout
or stderr
. filename specifies which file
to save output to. Any previously redirected filename for this stream is
automatically closed. A blank filename can be used to close the current
redirection for this stream without opening a new file. The command returns 1
for success, 0 for failure.
This control is connected to the "redirect" menu created by the
tout_create_wins
command.