diff options
author | Robby Russell <robby@planetargon.com> | 2012-12-04 06:45:01 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2012-12-04 06:45:01 -0800 |
commit | d88fad3392e3e70b49aea01f8df768e8962d99ad (patch) | |
tree | 5f5730af4f1eafbf660d0b175d4f43d5f4874c00 /lib | |
parent | 24188fda800936b1abcbb37d9f9a7cff841215f8 (diff) | |
parent | 8f89d4d5a5d584bae288d8111d83a6489a1369dc (diff) | |
download | zsh-d88fad3392e3e70b49aea01f8df768e8962d99ad.tar.gz zsh-d88fad3392e3e70b49aea01f8df768e8962d99ad.tar.bz2 zsh-d88fad3392e3e70b49aea01f8df768e8962d99ad.zip |
Merge pull request #880 from darrenclark/fix-mac-terminal-app-echo-issue
Fixed Mac OS X Terminal.app related issue with extra newlines echoed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/termsupport.zsh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index c056989eb..7470110b6 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -8,6 +8,8 @@ function title { fi if [[ "$TERM" == screen* ]]; then print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars + elif [[ "$TERM_PROGRAM" == "Apple_Terminal" ]]; then + print -Pn "\e]1;$1:q\a" #set icon (=tab) name (will override window name on broken terminal) elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then print -Pn "\e]2;$2:q\a" #set window name print -Pn "\e]1;$1:q\a" #set icon (=tab) name (will override window name on broken terminal) |