Is there a way in the new io API to easily redirect stderr / stdout?
Previously I was using
std::old_io::pipe::PipePair. This is deprecated, though. So I went looking and found
std::os::Pipe however that entire module is also deprecated, with the recommendation of using
std::env instead, which does not provide an equivalent.
Is this an oversight? Or is there something else elsewhere that I’m missing?
For reference, the project I’m looking to update is: https://github.com/gchp/rustbox/blob/master/src/rustbox.rs#L231