Spawning a console in Windows (similar to forkpty on linux)

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 9 16:27:25 PDT 2015


On Saturday, 9 May 2015 at 18:19:16 UTC, Baz wrote:
> You need a loop that run until the PID is invalid.

You could also call WaitForSingleObject on the process handle
https://msdn.microsoft.com/en-us/library/windows/desktop/ms687032%28v=vs.85%29.aspx

The HANDLE it expects can be gotten from std.process with this
http://dlang.org/phobos/std_process.html#osHandle


But then you'll block for it to end so it probably isn't what you 
really want...


More information about the Digitalmars-d-learn mailing list