slicker listing leaves off mbytes if there are none. also added gbytes count with...
[feisty_meow.git] / customizing / fred / scripts / ssh.sh
index 196129cbf94b86e64004d5b4bf8ca17c1a15a939..39856a897e8713639e4c31dcb51d0635c7b169b9 100755 (executable)
@@ -10,6 +10,16 @@ if [ "$TERM" == "xterm" ]; then
   prior_title="$(xprop -id $WINDOWID | perl -nle 'print $1 if /^WM_NAME.+= \"(.*)\"$/')"
 fi
 
+# force the TERM variable to a more generic version for other side.
+# we don't want the remote side still thinking it's running xterm.
+export TERM=linux
+
+#hmmm: it would be good to set an interrupt handler here and
+#      trap ctrl-c, since otherwise we are getting exited from and losing a chance
+#      to reset the terminal title.  this actually happens a lot, since some X11
+#      or other background process is left running and the ssh never actually quits,
+#      forcing one to hit ctrl-c.
+
 if [ ! -z "$keyfile" ]; then
   \ssh -i "$keyfile" -X -C -c blowfish-cbc $*
 else