We need additional software to do this
We have to choose between reptyr and retty. As retty works for x86 linux system only, so we are going to use reptyr
Go ahead and install it:
$sudo apt-get install reptyr -y
For Centos you can get it here:
wget https://github.com/nelhage/reptyr
I will just show of what should you do to get your process running in screen
$htop
$ctrl+z
Assuming that we are working with only one job, so we will use the following commands without job's number specifying
$bg
$disown -a
Open new shell session and start screen here
$screen -S my_test
$ps auxfS |grep htop
$reptyr PID
Thats all, htop command will continue running from the inside your screen