# CAPTION AND HARDSTATUS
# Use white on light blue background for highlighting and text messages (and
-# for window borders in split mode).
+# for window borders in split mode). For remote hosts this is changed to dark
+# blue to increase the contrast of nested screens.
sorendition = Bw
# Display current battery charge if running on a laptop. Redisplay every 3
apply_optional_replacement screenrc \
temperature TEMPERATURE "$temperature"
# Settings for local hosts.
-if test -z "${SSH_CONNECTION:+set}"; then
+if test -n "${SSH_CONNECTION:+set}"; then
+ echo 'screenrc: using dark blue for remote screens'
+ sed_i 's/sorendition = Bw/sorendition = bw/' screenrc
+else
echo 'screenrc: removing remote options'
grep_i -v '(REMOTE)' screenrc
fi