chiark / gitweb /
mount-keys: Exit non-zero if cfsd fails to restart the second time as well.
[bin.git] / xterm-title
index b408bfc41be6f964ec13ae6186b4ca8a70924971..64ffea633c84d25be249fcbad354c3871fef3f47 100755 (executable)
@@ -1,2 +1,4 @@
 #! /bin/sh
-printf '\e]0;'"$*"'\a'
+if [ "$TERM" = xterm ] || [ "$TERM" = screen ]; then
+    printf '\033]0;'"$*"'\a'
+fi