aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-02-16 22:49:49 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-02-16 22:49:49 -0300
commit7ce299e0a86c415c2a0ca83ab4b4e18e34c74a22 (patch)
tree124f378805c1703b471bedf4a165b0c5794e3562 /shell
parenta15518a7eab4e1ea18f0ff7df7b872f78cd85195 (diff)
downloadscripts-7ce299e0a86c415c2a0ca83ab4b4e18e34c74a22.tar.gz
scripts-7ce299e0a86c415c2a0ca83ab4b4e18e34c74a22.tar.bz2
Setting TERM=rxvt for older systems
Diffstat (limited to 'shell')
-rwxr-xr-xshell7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell b/shell
index f6319a8..843a39f 100755
--- 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