You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought about some kind of API like
(it's not exactly boost process API, just bikeshedding in bp v1 API style):
bp::pty pty;
bp::process child("/some/binary", bp::std_in > pty, bp::std_out < pty);
std::string process_output_line;
pty >> process_output_line; // read string from process (until first space , or use std::getline())
pty << 15; // write to child' stdin via pty
Currently, there is no portable way (at least I tried to (ab)use the posix file descriptors, but no luck, pipe helpers won't work with same pty fd and either copies them, or hangs)
The main use case is for batch run some apps which doesn't understand
"non-tty"
stdin.Windows supports this from win10 , 1803 and requires the special HANDLEs created via CreatePseudoConsole
Linux creates these pty via openpty(3).
The text was updated successfully, but these errors were encountered: