]> gitweb.fluxo.info Git - scripts.git/commitdiff
Setting TERM=rxvt for older systems
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 17 Feb 2014 01:49:49 +0000 (22:49 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 17 Feb 2014 01:49:49 +0000 (22:49 -0300)
shell

diff --git a/shell b/shell
index f6319a802752c680e4fb098d5d397312b3a9b635..843a39fcacbb3da56dbafff01c23982d8da5fd5b 100755 (executable)
--- a/shell
+++ b/shell
@@ -13,10 +13,13 @@ fi
 
 if [ "$BASENAME" == "shells" ]; then
   # Remote screen shell using autossh
+  #
+  # We're setting TERM for compatibility with older systems without rxvt-unicode-256
+  # support, see https://bbs.archlinux.org/viewtopic.php?id=50647
   if [ "$COMMAND" == "root" ]; then
-    autossh $DEST -t -- sudo screen -x
+    autossh $DEST -t -- TERM=rxvt sudo screen -x
   else
-    autossh $DEST -t -- screen -x $COMMAND
+    autossh $DEST -t -- TERM=rxvt screen -x $COMMAND
   fi
 else
   if [ -z "$COMMAND" ] && screen -ls $DEST | grep -q "There is a screen on"; then