I put "restart" in quotes because the following question on SO illustrates what I'm trying to do:
https://stackoverflow.com/questions/27957091/restarting-a-process-in-the-same-linux-terminal
I'm using mono to run some C# code and for cross-platform compatibility issues I'd rather not go the obvious route and just have a shell script or systemd handle restarting the process.
On windows what happens is a new window spawns, and the old one dies. In Linux I just get invalid handle exceptions being thrown. My ideal case would be to just re-use the same terminal.
I guess I'd have to have the terminal detach from the process that's about to end, attach to the new one, and then have the old process die?
Is what I'm asking even possible?