linux - Why using 'screen -r' on remote host changed my terminal background color?
2014-07
Zen
I have a custom vim color scheme on the remote host.
Today I found after I using ssh to connect to the remote host and resume my screen process with 'screen -r', everything I wrote in the vim editer has a grey background color, and all syntax colors are different. After I quit vim, I found the bash commands I typed has the same green background color. After I exit or dispatch from screen, everything become normal.
Why this happened? How to fix it?
Answers
Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.
Related Question
linux - How do I change the colors in the hardstatus line in GNU Screen?
Drew Stephens
I've got the following in my screenrc:
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a "
Which is great, but I'd love to be able to change the colors of the text in the hardstatus line.
Related Answers
pixelbeat
info screen "String Escapes"
Here's my .screenrc for reference.