I would like screen to change the background color of the terminal (xterm) when started.
I want to have a quick way of determining whether I am in screen or not. I often work over shh and it often crashes. I started using screen so as not to lose my work. However, I do not want screen to start automatically when I ssh to the machine because I probably want to do
screen -list or
screen -r instead. Therefore, I need something to alert me that I am not in screen and that my work (especially running applications) can be lost if the connection dies.
I have xterm and I use
ssh -XY, if that is relevant.