chiark / gitweb /
xterm-title: Don't do anything unless $TERM = xterm.
[bin.git] / xterm-title
index 1fcea562e0aa8195bc9d26ef3358e865e2f28526..2299cca9e55b2d83c66bb3135295834f4737cb34 100755 (executable)
@@ -1,2 +1,4 @@
 #! /bin/sh
-printf '\033]0;'"$*"'\a'
+if [ "$TERM" = xterm ]; then
+    printf '\033]0;'"$*"'\a'
+fi