Let's say you have a pre-existing long-running process that you want to move between two different terminals(ideally, you'd like to move this process inside a tmux). What would be the most reliable way to do this?
I don't know about "best", but there's RePTYr.
<a href="https://github.com/nelhage/reptyr" rel="nofollow">https://github.com/nelhage/reptyr</a>