chiark
/
gitweb
/
~cjwatson
/
bin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
get-rfc: Always download to $HOME/misc/rfc rather than the current
[bin.git]
/
xterm-title
diff --git
a/xterm-title
b/xterm-title
index 7a6a536c79cb35d3d468c76bf496c45934f8719f..64ffea633c84d25be249fcbad354c3871fef3f47 100755
(executable)
--- a/
xterm-title
+++ b/
xterm-title
@@
-1,2
+1,4
@@
#! /bin/sh
-echo -en '\e]2;'"$*"'\e\\'
+if [ "$TERM" = xterm ] || [ "$TERM" = screen ]; then
+ printf '\033]0;'"$*"'\a'
+fi