/etc/profile.d/screen.sh:

#!/bin/sh 
if [ ${SHLVL} -eq 1 ]; then 
((SHLVL+=1)); 
export SHLVL 
exec screen -x -R -e "^Ee" ${SHELL} -l 
fi

~/.screenrc:

termcapinfo xterm* ti@:te@

screen remote setup