This question already has an answer here:
Is it possible (and if so, how?) to move a process from a terminal emulator running in X to a different virtual terminal, so that I can restart the X server without killing the process running in the terminal emulator?
- Is it possible to transfer a running process to your terminal?
- How can I disown a running process and associate it to a new screen shell? (Edit: The question in this link has been incorrectly marked as a duplicate of my question. Note that the accepted answer to that question does not address my question. GNU
screencurrently can not incorporate processes that were invoked prior to invocation of
screenand cannot take over ownership of the process to be moved to a terminal.