b457ae2501220e80490ecf7ae42e5610b61b75e4

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Merge pull request #4651 from ionelmc/patch-1

Add support for "putty" $TERM in termsupport.zsh

Diff

 1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
 2index 4c5068e9b40484c9f68632b80fff4e241cc8d0a9..9750a9fe8add31d5cc6e5a476973baa6dfdb76e5 100644
 3--- a/lib/termsupport.zsh
 4+++ b/lib/termsupport.zsh
 5@@ -18,7 +18,7 @@ function title {
 6 
 7   if [[ "$TERM" == screen* ]]; then
 8     print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars
 9-  elif [[ "$TERM" == xterm* ]] || [[ "$TERM" == rxvt* ]] || [[ "$TERM" == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
10+  elif [[ "$TERM" == xterm* ]] || [[ "$TERM" == putty* ]] || [[ "$TERM" == rxvt* ]] || [[ "$TERM" == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
11     print -Pn "\e]2;$2:q\a" #set window name
12     print -Pn "\e]1;$1:q\a" #set icon (=tab) name
13   fi