chiark / gitweb /
testing-blockages: Script from Anthony Towns to print a brief analysis of
[bin.git] / xterm-title
old mode 100644 (file)
new mode 100755 (executable)
index 7a6a536..64ffea6
@@ -1,2 +1,4 @@
 #! /bin/sh
-echo -en '\e]2;'"$*"'\e\\'
+if [ "$TERM" = xterm ] || [ "$TERM" = screen ]; then
+    printf '\033]0;'"$*"'\a'
+fi