chiark / gitweb /
superseded by moreutils
[bin.git] / xterm-title
index 2299cca9e55b2d83c66bb3135295834f4737cb34..bec2c03c0a3d767ae557f7f379041635b7b6b020 100755 (executable)
@@ -1,4 +1,6 @@
 #! /bin/sh
-if [ "$TERM" = xterm ]; then
-    printf '\033]0;'"$*"'\a'
-fi
+case $TERM in
+    xterm|screen*)
+       printf '\033]0;'"$*"'\a'
+       ;;
+esac