chiark / gitweb /
support TERM=screen.linux
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Thu, 12 Jan 2006 10:28:53 +0000 (10:28 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Thu, 12 Jan 2006 10:28:53 +0000 (10:28 +0000)
xterm-title

index 64ffea6..bec2c03 100755 (executable)
@@ -1,4 +1,6 @@
 #! /bin/sh
-if [ "$TERM" = xterm ] || [ "$TERM" = screen ]; then
-    printf '\033]0;'"$*"'\a'
-fi
+case $TERM in
+    xterm|screen*)
+       printf '\033]0;'"$*"'\a'
+       ;;
+esac