chiark
/
gitweb
/
~cjwatson
/
bin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c53ee76
)
xterm-title: Don't do anything unless $TERM = xterm.
author
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Mon, 27 Jan 2003 10:53:32 +0000
(10:53 +0000)
committer
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Mon, 27 Jan 2003 10:53:32 +0000
(10:53 +0000)
xterm-title
patch
|
blob
|
history
diff --git
a/xterm-title
b/xterm-title
index 1fcea562e0aa8195bc9d26ef3358e865e2f28526..2299cca9e55b2d83c66bb3135295834f4737cb34 100755
(executable)
--- a/
xterm-title
+++ b/
xterm-title
@@
-1,2
+1,4
@@
#! /bin/sh
-printf '\033]0;'"$*"'\a'
+if [ "$TERM" = xterm ]; then
+ printf '\033]0;'"$*"'\a'
+fi