From: Colin Watson Date: Mon, 20 Jan 2003 17:12:17 +0000 (+0000) Subject: xterm-title: Use printf rather than 'echo -en'. ESC ] 0 ; BEL seems X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=commitdiff_plain;h=9e337bb10cbeea82f8dc9a5ec81404ccbbfa5e99 xterm-title: Use printf rather than 'echo -en'. ESC ] 0 ; <title> BEL seems to be a more canonical sequence. --- diff --git a/xterm-title b/xterm-title index 7a6a536..b408bfc 100755 --- a/xterm-title +++ b/xterm-title @@ -1,2 +1,2 @@ #! /bin/sh -echo -en '\e]2;'"$*"'\e\\' +printf '\e]0;'"$*"'\a'