subprocess icon indicating copy to clipboard operation
subprocess copied to clipboard

Allow output capture into a stream

Open rajatjain1997 opened this issue 4 years ago • 0 comments

Currently, stdout/stderr can only be captured into std::string. This can be a problem for programs that dump a huge amount of output. There should be an alternate option to capture the output into an ofstream and read it whenever needed.

I am currently undecided on the syntax since std::ofstream doesn't support creation of streams from file descriptors.

rajatjain1997 avatar Sep 12 '21 04:09 rajatjain1997