How to disable the clearing of the first page when executing screen tool

Hi Guy,

In order to monitor the user sessions, I have put the screen tool in the .profile in order to record the whole session.
However, when the user logs in, the screen command is executed and the screen is first cleared, then the command prompt appears. so, I basically want to disable the clearing of the screen, this means that when a user logs in, the screen command is executed and the command prompt comes on the second line without clearing the screen.
I have attached the screen source code in c language as well.

thanks for your help in advance.
Regards,
Saad

I have no experience in using 'screen' for logging but you may consider 'script' for that.

Hi Odys,

Thanks for your reply. I basically have already tried to use script tool, but I have faced another problem as the terminal settings used to get lost when I started the script command.

Regards,
Saad