X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=blobdiff_plain;f=xterm-title;h=bec2c03c0a3d767ae557f7f379041635b7b6b020;hp=1fcea562e0aa8195bc9d26ef3358e865e2f28526;hb=cdb79bca0737bc6c9e39cad2076d392387bc0ff0;hpb=bfecc0dc54e64c2735fcc8816c623b103565e83c diff --git a/xterm-title b/xterm-title index 1fcea56..bec2c03 100755 --- a/xterm-title +++ b/xterm-title @@ -1,2 +1,6 @@ #! /bin/sh -printf '\033]0;'"$*"'\a' +case $TERM in + xterm|screen*) + printf '\033]0;'"$*"'\a' + ;; +esac