Function std::old_io::stdio::set_stdoutUnstable [-] [+] [src]

pub fn set_stdout(stdout: Box<Writer + Send>) -> Option<Box<Writer + Send>>

Resets the task-local stdout handle to the specified writer

This will replace the current task's stdout handle, returning the old handle. All future calls to print and friends will emit their output to this specified handle.

Note that this does not need to be called for all new tasks; the default output handle is to the process's stdout stream.