Oh shoot! I started this process outside of tmux, but now I need to go away and it's been running a while, what can I do?
[Ctrl-z] on the process
bg
echo $! # get the PID (1608)
disown
tmux
reptyr 1608
@climagic does this works also in screen ? reptyr is not a tmux command ? In general these commands are not installed ?
@ixo @climagic It is an entirely separate executable: https://github.com/nelhage/reptyr
GitHub - nelhage/reptyr: Reparent a running program to a new terminal

Reparent a running program to a new terminal. Contribute to nelhage/reptyr development by creating an account on GitHub.

GitHub