Hello all! I’ve been working on a project where I need to run the system’s package manager. As such I need to spawn the process and have it take take control of the session until it’s done installing packages. The problem I’ve been facing however is that I can’t seem to interact with the Command Struct in a non blocking way. I tried using CommandExt to change the session leader but then I get an error saying no tty available. This was about as close as I could find to what I needed but it wasn’t exactly what I wanted.
Put simply I want to start a process, switch out of my program to use it until it’s done, then jump back into the rust code again. Does anybody have any experience with this or be able to point me in the right direction to figure this out? It’s been driving me nuts and any help would be greatly appreciated.