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:
d4b1b0c
)
xterm-title: Use printf rather than 'echo -en'. ESC ] 0 ; <title> BEL seems
author
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Mon, 20 Jan 2003 17:12:17 +0000
(17:12 +0000)
committer
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Mon, 20 Jan 2003 17:12:17 +0000
(17:12 +0000)
to be a more canonical sequence.
xterm-title
patch
|
blob
|
history
diff --git
a/xterm-title
b/xterm-title
index 7a6a536c79cb35d3d468c76bf496c45934f8719f..b408bfc41be6f964ec13ae6186b4ca8a70924971 100755
(executable)
--- a/
xterm-title
+++ b/
xterm-title
@@
-1,2
+1,2
@@
#! /bin/sh
-
echo -en '\e]2;'"$*"'\e\\
'
+
printf '\e]0;'"$*"'\a
'