Closed lbartnik closed 7 years ago
Won't work because parent R cannot attach to the child console unless it frees its own. It seems that there's no way to deliver CTRL+C to a single child process or its process group. CTRL+C can only be delivered to all processes attached to the console of the parent R process.
Try setting wShowWindow in StartupInfo (https://msdn.microsoft.com/en-us/library/windows/desktop/ms686331(v=vs.85).aspx) and opening a new console via creation flags (https://msdn.microsoft.com/en-us/library/windows/desktop/ms684863(v=vs.85).aspx).