Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

quote correctly(?) to avoid bogus output from subshells fixes #770 #824

Closed
wants to merge 1 commit into from

3 participants

@Dieterbe

TBH i don't understand exactly what's going on, but this was suggested by somebody who seems to know what he's talking about, and this seems to work fine for me.
see #770

@blueyed

The same is required for the "$TERM" == screen* and #set icon lines, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/termsupport.zsh
View
2  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
}
Something went wrong with that request. Please try again.