]> code.delx.au - monosys/commitdiff
ssh-screen-wrapper doesn't use tput
authorJames Bunton <jamesbunton@delx.net.au>
Fri, 22 Jul 2016 10:43:22 +0000 (20:43 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Fri, 22 Jul 2016 10:43:22 +0000 (20:43 +1000)
scripts/ssh-screen-wrapper

index ea6f9c7c7c2baec94be5f116ac90d1427fcaae9c..aba83ce2bffe1180f022e80d2c2eab0549675a2a 100755 (executable)
@@ -23,7 +23,7 @@ while true; do
         "bash --login -c 'screen -dR'" \
     && exit 0
     echo "Disconnected, waiting..."
-    tput tsl; echo -n "${hostname}: disconnected!"; tput fsl
+    echo -ne "\033]0;${hostname}: disconnected!\007"
     sleep 1
 done