chiark / gitweb /
ubuntu-daily: flip -a semantics to mean --authenticated, not --anonymous
[bin.git] / xterm-title
index 1fcea562e0aa8195bc9d26ef3358e865e2f28526..bec2c03c0a3d767ae557f7f379041635b7b6b020 100755 (executable)
@@ -1,2 +1,6 @@
 #! /bin/sh
-printf '\033]0;'"$*"'\a'
+case $TERM in
+    xterm|screen*)
+       printf '\033]0;'"$*"'\a'
+       ;;
+esac