From b70159ede278ebaa84c9fc388019684ac7ba5ab2 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Wed, 11 Jan 2012 13:51:55 +0100 Subject: [PATCH] quote correctly(?) to avoid bogus output from subshells fixes #770 --- lib/termsupport.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 221989502..c6b6d8ec2 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -7,7 +7,7 @@ function title { if [[ "$TERM" == screen* ]]; then print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then - print -Pn "\e]2;$2:q\a" #set window name + print -Pn $'\e]0;$2\a' #set window name print -Pn "\e]1;$1:q\a" #set icon (=tab) name (will override window name on broken terminal) fi }