$ curl cheat.sh/
# reptyr
# Move a running process to a new terminal.
# Best used when you forget to start a long running task in `screen`.
# More information: <https://github.com/nelhage/reptyr>.

# Move a running process to your current terminal:
reptyr pid

$
Follow @igor_chubin cheat.sh tldr